aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2012-03-03 11:43:18 +0100
committerGabor Kelemen <kelemeng@ubuntu.com>2012-03-03 11:43:18 +0100
commite5d711f1ae371704de8c251b27ad52165ec55690 (patch)
treed9ce8a3a4c0c7472f3ddbd369c01932f31ed8162 /src
parentffa10b292cf417a246da1035a55322a25740626a (diff)
downloadayatana-indicator-printers-e5d711f1ae371704de8c251b27ad52165ec55690.tar.gz
ayatana-indicator-printers-e5d711f1ae371704de8c251b27ad52165ec55690.tar.bz2
ayatana-indicator-printers-e5d711f1ae371704de8c251b27ad52165ec55690.zip
Correct the use of plurals
Diffstat (limited to 'src')
-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"),