[gnome-documents] toolbar: use ngettext() for "%d selected" string
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] toolbar: use ngettext() for "%d selected" string
- Date: Wed, 29 Feb 2012 20:14:58 +0000 (UTC)
commit 0ba75e2178d0bc25b833791841099556acb3a99a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 29 15:13:37 2012 -0500
toolbar: use ngettext() for "%d selected" string
Some languages distinguish plurals even without verbs.
https://bugzilla.gnome.org/show_bug.cgi?id=670374
src/mainToolbar.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 7806731..298d79c 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -26,6 +26,7 @@ const Gtk = imports.gi.Gtk;
const GtkClutter = imports.gi.GtkClutter;
const Pango = imports.gi.Pango;
+const Gettext = imports.gettext;
const _ = imports.gettext.gettext;
const Lang = imports.lang;
@@ -117,7 +118,9 @@ MainToolbar.prototype = {
if (length == 0)
detail = _("Click on items to select them");
else
- detail = (_("%d selected").format(length));
+ detail = Gettext.ngettext("%d selected",
+ "%d selected",
+ length).format(length);
if (collection) {
primary = collection.name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]