From 69bc2bd035891da8a6808d43fe2a2cd91852890d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 23 Jun 2016 10:51:55 +0200 Subject: shell: add plural form for "cancel print jobs before closing" dialog The use of ngettext is adviced even if the singular form is not used as languages other than english may have more than one plural form. taken from: https://git.gnome.org/browse/evince/commit/?id=29a368d --- shell/ev-window.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index ce19a1cc..e30d36d2 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3739,8 +3739,14 @@ ev_window_check_print_queue (EvWindow *ev_window) text = g_strdup_printf (_("Wait until print job ā€œ%sā€ finishes before closing?"), job_name); } else { - text = g_strdup_printf (_("There are %d print jobs active. " - "Wait until print finishes before closing?"), + /* TRANS: the singular form is not really used as n_print_jobs > 1 + but some languages distinguish between different plurals forms, + so the ngettext is needed. */ + text = g_strdup_printf (ngettext("There is %d print job active. " + "Wait until print finishes before closing?", + "There are %d print jobs active. " + "Wait until print finishes before closing?", + n_print_jobs), n_print_jobs); } -- cgit v1.2.1