aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-printer-state-notifier.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-03-06 22:20:47 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-03-06 22:20:47 +0100
commit37ac5a3dc3bdd8d800324acf79be2ffa47bc4e15 (patch)
tree1b49484e3456cdba456a8a4dc68614a212b6c9be /src/indicator-printer-state-notifier.c
parent30c26e1a5067c0773d777c506656f14b5a394571 (diff)
parent85fc36ca17b8d908434c9e480a3240be72b1b6fa (diff)
downloadayatana-indicator-printers-37ac5a3dc3bdd8d800324acf79be2ffa47bc4e15.tar.gz
ayatana-indicator-printers-37ac5a3dc3bdd8d800324acf79be2ffa47bc4e15.tar.bz2
ayatana-indicator-printers-37ac5a3dc3bdd8d800324acf79be2ffa47bc4e15.zip
* New upstream release.
- fix small i18n problems, thanks Gabor! (LP: #945547)
Diffstat (limited to 'src/indicator-printer-state-notifier.c')
-rw-r--r--src/indicator-printer-state-notifier.c10
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"),