[evolution-exchange] Bug #611188 - Doesn't support plural forms properly (needs ngettext)



commit 5156889dd205c9c95854fa5e9f76a05e912d1993
Author: Milan Crha <mcrha redhat com>
Date:   Tue Apr 6 20:10:03 2010 +0200

    Bug #611188 - Doesn't support plural forms properly (needs ngettext)

 eplugin/exchange-config-listener.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/eplugin/exchange-config-listener.c b/eplugin/exchange-config-listener.c
index 9ba83da..8c47afd 100644
--- a/eplugin/exchange-config-listener.c
+++ b/eplugin/exchange-config-listener.c
@@ -658,7 +658,8 @@ display_passwd_expiry_message (gint max_passwd_age, ExchangeAccount *account)
 	GtkWidget *ok_button;
 	AtkObject *atko;
 	gchar *passwd_expiry_msg =
-		g_strdup_printf (_("Your password will expire in the next %d days"), max_passwd_age);
+		/* Translators: The %d is replaced with the actual number of days */
+		g_strdup_printf (ngettext ("Your password will expire in the next %d day", "Your password will expire in the next %d days", max_passwd_age), max_passwd_age);
 
 	passwd_exp_dialog = gtk_dialog_new ();
 	gtk_window_set_title (GTK_WINDOW (passwd_exp_dialog), _("Password Expiry Warning..."));



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