aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-notification
diff options
context:
space:
mode:
authorJohnny Jacob <jjohnny@src.gnome.org>2008-01-28 14:28:50 +0800
committerJohnny Jacob <jjohnny@src.gnome.org>2008-01-28 14:28:50 +0800
commit6ca6246318827972716daf51a66cbac71b49e06f (patch)
treecb8574169a83615c0b701f92f63b46d959fbcaf9 /plugins/mail-notification
parent89791fb36475d2cfceefd8613f1f2802b3b96267 (diff)
downloadgsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.tar
gsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.tar.gz
gsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.tar.bz2
gsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.tar.lz
gsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.tar.xz
gsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.tar.zst
gsoc2013-evolution-6ca6246318827972716daf51a66cbac71b49e06f.zip
Fix for Bug 504567. Added gettext for plurals in mail-notification plugin.
svn path=/trunk/; revision=34912
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r--plugins/mail-notification/ChangeLog7
-rw-r--r--plugins/mail-notification/mail-notification.c9
2 files changed, 13 insertions, 3 deletions
diff --git a/plugins/mail-notification/ChangeLog b/plugins/mail-notification/ChangeLog
index cbab0377ab..edd5341ed5 100644
--- a/plugins/mail-notification/ChangeLog
+++ b/plugins/mail-notification/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-21 Johnny Jacob <jjohnny@novell.com>
+
+ ** Fixes 504567.
+
+ * mail-notification.c (new_notify_status): Add ngettext support for
+ strings.
+
2008-01-09 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #492702
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index c2b1f59410..239f466344 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -356,13 +356,16 @@ new_notify_status (EMEventTargetFolder *t)
status_icon = gtk_status_icon_new ();
gtk_status_icon_set_from_pixbuf (status_icon, e_icon_factory_get_icon ("mail-unread", E_ICON_SIZE_LARGE_TOOLBAR));
}
-
+ /* Translators : '%d' is the number of mails recieved and '%s' is the name of the folder*/
if (!status_count) {
status_count = t->new;
- msg = g_strdup_printf (_("You have received %d new messages\nin %s."), status_count, t->name);
+ msg = g_strdup_printf (ngettext ("You have received %d new message\nin %s.",
+ "You have received %d new messages\nin %s.",
+ status_count),status_count, t->name);
} else {
status_count += t->new;
- msg = g_strdup_printf (_("You have received %d new messages."), status_count);
+ msg = g_strdup_printf (ngettext ("You have received %d new message.",
+ "You have received %d new messages.", status_count), status_count);
}
gtk_status_icon_set_tooltip (status_icon, msg);