diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2012-03-06 22:24:54 +0100 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2012-03-06 22:24:54 +0100 |
commit | 3cbf4224a6aa1c494838c32131c0a7cab49d750a (patch) | |
tree | 542fce308b84afd31462bb3b5b6c33841f699f47 /src/indicator-printer-state-notifier.c | |
parent | 30c26e1a5067c0773d777c506656f14b5a394571 (diff) | |
parent | fefe2d16ff185395e296906f80dbc5d32bb891fd (diff) | |
download | ayatana-indicator-printers-3cbf4224a6aa1c494838c32131c0a7cab49d750a.tar.gz ayatana-indicator-printers-3cbf4224a6aa1c494838c32131c0a7cab49d750a.tar.bz2 ayatana-indicator-printers-3cbf4224a6aa1c494838c32131c0a7cab49d750a.zip |
releasing version 0.1.4-0ubuntu1
Diffstat (limited to 'src/indicator-printer-state-notifier.c')
-rw-r--r-- | src/indicator-printer-state-notifier.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/indicator-printer-state-notifier.c b/src/indicator-printer-state-notifier.c index 8261274..65eb5b0 100644 --- a/src/indicator-printer-state-notifier.c +++ b/src/indicator-printer-state-notifier.c @@ -120,16 +120,14 @@ show_alert_box (const gchar *printer, GtkWidget *image; gchar *primary_text; gchar *secondary_text; - const gchar *fmt; image = gtk_image_new_from_icon_name ("printer", GTK_ICON_SIZE_DIALOG); primary_text = g_strdup_printf (reason, printer); - if (njobs == 1) - fmt = _("You have %d job queued to print on this printer."); - else - fmt = _("You have %d jobs queued to print on this printer."); - secondary_text = g_strdup_printf (fmt, njobs); + secondary_text = g_strdup_printf (ngettext( + "You have %d job queued to print on this printer.", + "You have %d jobs queued to print on this printer.", njobs), + njobs); dialog = g_object_new (GTK_TYPE_MESSAGE_DIALOG, "title", _("Printing Problem"), |