aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-02-16 17:42:31 +0800
committerMilan Crha <mcrha@redhat.com>2012-02-16 17:42:31 +0800
commitea73b4f8cac37b277861beebd8f6f168aa51e629 (patch)
tree30ae2bc71acdad8e5dd5887e83c28e7733ef988b
parent14063dfbe507039b140fcf87089de4bf66e2d1fa (diff)
downloadgsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.tar
gsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.tar.gz
gsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.tar.bz2
gsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.tar.lz
gsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.tar.xz
gsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.tar.zst
gsoc2013-evolution-ea73b4f8cac37b277861beebd8f6f168aa51e629.zip
Bug #659396 - Missing plural handling for "You have selected %d mails to..."
-rw-r--r--plugins/mail-to-task/mail-to-task.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index e338393a76..fbb10669bf 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -632,19 +632,29 @@ get_question_edit_old (ECalClientSourceType source_type)
}
static const gchar *
-get_question_add_all_mails (ECalClientSourceType source_type)
+get_question_add_all_mails (ECalClientSourceType source_type,
+ gint count)
{
const gchar *ask = NULL;
switch (source_type) {
case E_CAL_CLIENT_SOURCE_TYPE_EVENTS:
- ask = _("You have selected %d mails to be converted to events. Do you really want to add them all?");
+ /* Translators: Note there are always more than 10 mails selected */
+ ask = ngettext ("You have selected %d mails to be converted to events. Do you really want to add them all?",
+ "You have selected %d mails to be converted to events. Do you really want to add them all?",
+ count);
break;
case E_CAL_CLIENT_SOURCE_TYPE_TASKS:
- ask = _("You have selected %d mails to be converted to tasks. Do you really want to add them all?");
+ /* Translators: Note there are always more than 10 mails selected */
+ ask = ngettext ("You have selected %d mails to be converted to tasks. Do you really want to add them all?",
+ "You have selected %d mails to be converted to tasks. Do you really want to add them all?",
+ count);
break;
case E_CAL_CLIENT_SOURCE_TYPE_MEMOS:
- ask = _("You have selected %d mails to be converted to memos. Do you really want to add them all?");
+ /* Translators: Note there are always more than 10 mails selected */
+ ask = ngettext ("You have selected %d mails to be converted to memos. Do you really want to add them all?",
+ "You have selected %d mails to be converted to memos. Do you really want to add them all?",
+ count);
break;
default:
g_assert_not_reached ();
@@ -1098,7 +1108,7 @@ mail_to_event (ECalClientSourceType source_type,
/* Ask before converting 10 or more mails to events */
if (uids->len > 10) {
- gchar *question = g_strdup_printf (get_question_add_all_mails (source_type), uids->len);
+ gchar *question = g_strdup_printf (get_question_add_all_mails (source_type, uids->len), uids->len);
if (do_ask (question, FALSE) == GTK_RESPONSE_NO) {
g_free (question);
g_object_unref (source_list);