[evince] shell: add plural form for "cancel print jobs before closing" dialog.



commit 29a368d8f0eb892271db1ed2c8293ce4b1e3c703
Author: Josà Aliste <jaliste src gnome org>
Date:   Fri Aug 26 10:13:51 2011 -0300

    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.

 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 7837196..4cd3f58 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3653,8 +3653,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);
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]