printing: Add context to some strings

The job priority strings need context to disambiguate them from
similar short strings elsewhere.
This commit is contained in:
Matthias Clasen 2024-04-04 16:56:50 +02:00
parent 345d23898d
commit ade1aaa8be
2 changed files with 12 additions and 2 deletions

View File

@ -538,7 +538,12 @@ cpdb_printer_get_options (GtkPrinter *printer,
{ {
/* job-priority is represented as a number from 1-100 */ /* job-priority is represented as a number from 1-100 */
const char *prio[] = {"100", "80", "50", "30"}; const char *prio[] = {"100", "80", "50", "30"};
const char *prio_display[] = {N_("Urgent"), N_("High"), N_("Medium"), N_("Low")}; const char *prio_display[] = {
NC_("Print job priority", "Urgent"),
NC_("Print job priority", "High"),
NC_("Print job priority", "Medium"),
NC_("Print job priority", "Low")
};
for (int i = 0; i < G_N_ELEMENTS(prio_display); i++) for (int i = 0; i < G_N_ELEMENTS(prio_display); i++)
prio_display[i] = _(prio_display[i]); prio_display[i] = _(prio_display[i]);

View File

@ -5664,7 +5664,12 @@ cups_printer_get_options (GtkPrinter *printer,
/* Translators: These strings name the possible values of the /* Translators: These strings name the possible values of the
* job priority option in the print dialog * job priority option in the print dialog
*/ */
const char *prio_display[] = {N_("Urgent"), N_("High"), N_("Medium"), N_("Low") }; const char *prio_display[] = {
NC_("Print job priority", "Urgent"),
NC_("Print job priority", "High"),
NC_("Print job priority", "Medium"),
NC_("Print job priority", "Low")
};
const char *n_up_layout[] = { "lrtb", "lrbt", "rltb", "rlbt", "tblr", "tbrl", "btlr", "btrl" }; const char *n_up_layout[] = { "lrtb", "lrbt", "rltb", "rlbt", "tblr", "tbrl", "btlr", "btrl" };
/* Translators: These strings name the possible arrangements of /* Translators: These strings name the possible arrangements of
* multiple pages on a sheet when printing * multiple pages on a sheet when printing