aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-02 01:22:32 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-02 01:22:32 +0800
commit0d66851bd58f75b21f30942c05a96fa7c4bf5817 (patch)
treea4cae8e7071ff09a27dbef07e6fab4e65c3d7347
parente61f815c1b69b31984aba527dfa0ed41cf9e4cbc (diff)
downloadgsoc2013-evolution-0d66851bd58f75b21f30942c05a96fa7c4bf5817.tar.gz
gsoc2013-evolution-0d66851bd58f75b21f30942c05a96fa7c4bf5817.tar.zst
gsoc2013-evolution-0d66851bd58f75b21f30942c05a96fa7c4bf5817.zip
Bug #272567 - Evolution message needs ngettext support
-rw-r--r--mail/em-utils.c9
-rw-r--r--mail/mail.error.xml2
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 340ec58e64..a26b61099a 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -103,7 +103,14 @@ em_utils_ask_open_many (GtkWindow *parent,
if (how_many < TOO_MANY)
return TRUE;
- string = g_strdup_printf ("%d", how_many);
+ string = g_strdup_printf (
+ ngettext (
+ /* Translators: This message is shown only for ten or more messages to be opened.
+ The %d is replaced with the actual count of messages. If you need a '%' in your text,
+ then write it doubled, like '%%'. */
+ "Are you sure you want to open %d messages at once?",
+ "Are you sure you want to open %d messages at once?", how_many),
+ how_many);
proceed = em_utils_prompt_user (
parent, "/apps/evolution/mail/prompts/open_many",
"mail:ask-open-many", string, NULL);
diff --git a/mail/mail.error.xml b/mail/mail.error.xml
index a889dfc8e3..2108ddd222 100644
--- a/mail/mail.error.xml
+++ b/mail/mail.error.xml
@@ -85,7 +85,7 @@ Many email systems add an Apparently-To header to messages that only have BCC re
</error>
<error id="ask-open-many" type="warning" default="GTK_RESPONSE_CANCEL">
- <_primary>Are you sure you want to open {0} messages at once?</_primary>
+ <primary>{0}</primary>
<_secondary xml:space="preserve">Opening too many messages at once may take a long time.</_secondary>
<button stock="gtk-cancel" response="GTK_RESPONSE_CANCEL"/>
<button _label="_Open Messages" response="GTK_RESPONSE_YES"/>