=?utf-8?q?=5Bfolks=5D_Bug_658730_=E2=80=94_ngettext_=28Plural_forms=29_ne?= =?utf-8?b?ZWRlZOKApg==?=
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Bug 658730 â ngettext (Plural forms) neededâ
- Date: Tue, 13 Sep 2011 16:55:38 +0000 (UTC)
commit f5358a7a0920103f2943ea02298842d123c0f743
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Sep 12 21:55:04 2011 +0100
Bug 658730 â ngettext (Plural forms) neededâ
Use ngettext() instead of gettext() for a plural string.
Closes: bgo#658730
NEWS | 2 ++
tools/import-pidgin.vala | 10 ++++++----
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index dba456b..881613b 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ Bugs fixed:
* Bug 658631 â crash at empathy startup
* Bug 658331 â Ensure read-only PersonaStores have empty writeable-properties
* Bug 658874 â Typo?
+* Bug 658730 â ngettext (Plural forms) needed for
+ "Imported %u buddies from '%s'."
Overview of changes from libfolks 0.6.2 to libfolks 0.6.2.1
===========================================================
diff --git a/tools/import-pidgin.vala b/tools/import-pidgin.vala
index d293ad9..97978f4 100644
--- a/tools/import-pidgin.vala
+++ b/tools/import-pidgin.vala
@@ -110,10 +110,12 @@ public class Folks.Importers.Pidgin : Folks.Importer
/* Tidy up */
delete xml_doc;
- /* Translators: the first parameter is the number of buddies which were
- * successfully imported, and the second is a filename. */
- stdout.printf (_("Imported %u buddies from '%s'.\n"), this.persona_count,
- filename);
+ stdout.printf (
+ /* Translators: the first parameter is the number of buddies which
+ * were successfully imported, and the second is a filename. */
+ ngettext ("Imported %u buddy from '%s'.",
+ "Imported %u buddies from '%s'.", this.persona_count) + "\n",
+ this.persona_count, filename);
/* Return the number of Personas we imported */
return this.persona_count;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]