125
126
primary_text = g_strdup_printf (reason, printer);
128
fmt = "You have %d job queued to print on this printer.";
129
fmt = _("You have %d job queued to print on this printer.");
130
fmt = "You have %d jobs queued to print on this printer.";
131
fmt = _("You have %d jobs queued to print on this printer.");
131
132
secondary_text = g_strdup_printf (fmt, njobs);
133
134
dialog = g_object_new (GTK_TYPE_MESSAGE_DIALOG,
134
"title", "Printing Problem",
135
"title", _("Printing Problem"),
135
136
"icon-name", "printer",
137
138
"text", primary_text,
147
148
g_free (secondary_text);
149
150
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
150
"_Settings…", RESPONSE_SHOW_SYSTEM_SETTINGS,
151
_("_Settings…"), RESPONSE_SHOW_SYSTEM_SETTINGS,
151
152
GTK_STOCK_OK, GTK_RESPONSE_OK,
153
154
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
314
315
priv->printer_alerts = g_hash_table_new (g_str_hash, g_str_equal);
315
316
g_hash_table_insert_many ( priv->printer_alerts,
316
"media-low", "The printer “%s” is low on paper.",
317
"media-empty", "The printer “%s” is out of paper.",
318
"toner-low", "The printer “%s” is low on toner.",
319
"toner-empty", "The printer “%s” is out of toner.",
320
"cover-open", "A cover is open on the printer “%s”.",
321
"door-open", "A door is open on the printer “%s”.",
322
"cups-missing-filter", "The printer “%s” can’t be used, because required software is missing.",
323
"offline", "The printer “%s” is currently off-line.",
317
"media-low", _("The printer “%s” is low on paper."),
318
"media-empty", _("The printer “%s” is out of paper."),
319
"toner-low", _("The printer “%s” is low on toner."),
320
"toner-empty", _("The printer “%s” is out of toner."),
321
"cover-open", _("A cover is open on the printer “%s”."),
322
"door-open", _("A door is open on the printer “%s”."),
323
"cups-missing-filter", _("The printer “%s” can’t be used, because required software is missing."),
324
"offline", _("The printer “%s” is currently off-line."),