Skip to content

Commit

Permalink
Fix localization of finishing templates and general presets.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Sep 9, 2024
1 parent 5a48037 commit dfb947e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cups/ppd-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -4916,7 +4916,7 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
}
}
cupsFilePuts(fp, "\"\n");
ppd_put_strings(fp, langs, "cupsFinishingTemplate", keyword, msgid);
ppd_put_strings(fp, langs, "cupsFinishingTemplate", ppdname, msgid);
cupsFilePuts(fp, "*End\n");
}

Expand Down Expand Up @@ -4956,7 +4956,7 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */
/* Preset name */
ipp_attribute_t *member; /* Member attribute in preset */
const char *member_name; /* Member attribute name */
char member_value[256]; /* Member attribute value */
char member_value[256]; /* Member attribute value */

if (!preset || !preset_name)
continue;
Expand Down Expand Up @@ -5085,8 +5085,9 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */

cupsFilePuts(fp, "\"\n*End\n");

// if ((localized_name = _cupsMessageLookup(strings, preset_name)) != preset_name)
// cupsFilePrintf(fp, "*%s.APPrinterPreset %s/%s: \"\"\n", lang->language, preset_name, localized_name);
pwg_ppdize_name(preset_name, ppdname, sizeof(ppdname));
snprintf(msgid, sizeof(msgid), "preset-name.%s", preset_name);
ppd_put_strings(fp, langs, "APPrinterPreset", ppdname, msgid);
}
}

Expand Down

0 comments on commit dfb947e

Please sign in to comment.