evolution r34912 - trunk/plugins/mail-notification



Author: jjohnny
Date: Mon Jan 28 06:28:50 2008
New Revision: 34912
URL: http://svn.gnome.org/viewvc/evolution?rev=34912&view=rev

Log:
Fix for Bug 504567. Added gettext for plurals in mail-notification plugin.


Modified:
   trunk/plugins/mail-notification/ChangeLog
   trunk/plugins/mail-notification/mail-notification.c

Modified: trunk/plugins/mail-notification/mail-notification.c
==============================================================================
--- trunk/plugins/mail-notification/mail-notification.c	(original)
+++ trunk/plugins/mail-notification/mail-notification.c	Mon Jan 28 06:28:50 2008
@@ -356,13 +356,16 @@
 		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);



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