Bug 658730 — ngettext (Plural forms) needed…
authorPhilip Withnall <philip@tecnocode.co.uk>
Mon, 12 Sep 2011 20:55:04 +0000 (21:55 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Tue, 13 Sep 2011 16:55:24 +0000 (17:55 +0100)
Use ngettext() instead of gettext() for a plural string.

Closes: bgo#658730

NEWS
tools/import-pidgin.vala

diff --git a/NEWS b/NEWS
index dba456b..881613b 100644 (file)
--- 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
 ===========================================================
index d293ad9..97978f4 100644 (file)
@@ -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;