diff options
author | raveit65 <[email protected]> | 2016-06-23 10:51:55 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-09 21:54:38 +0300 |
commit | 69bc2bd035891da8a6808d43fe2a2cd91852890d (patch) | |
tree | 4581d6498f9b2de36ebd47e61d113cfe057497f7 | |
parent | afbca509b3c99255123786259664d970c3b81b64 (diff) | |
download | atril-69bc2bd035891da8a6808d43fe2a2cd91852890d.tar.bz2 atril-69bc2bd035891da8a6808d43fe2a2cd91852890d.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
-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 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); } |