diff options
author | raveit65 <[email protected]> | 2016-06-23 10:51:55 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-06-24 20:48:20 +0200 |
commit | 8ee95fa1cdd5e43177fd1786a5b9fef37061ada0 (patch) | |
tree | 72060c496e7211b029c390409d528d1f92cc3000 /shell | |
parent | e43c98ad9ac2f5ed5479ad560446a202a3e4731b (diff) | |
download | atril-8ee95fa1cdd5e43177fd1786a5b9fef37061ada0.tar.bz2 atril-8ee95fa1cdd5e43177fd1786a5b9fef37061ada0.tar.xz |
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
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 10 |
1 files 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); } |