From 8ee95fa1cdd5e43177fd1786a5b9fef37061ada0 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(-) diff --git a/shell/ev-window.c b/shell/ev-window.c index 5e31007b..b282062c 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -3762,8 +3762,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