[gnome-documents] loadmore: use ngettext() instead of gettext() for plural forms
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] loadmore: use ngettext() instead of gettext() for plural forms
- Date: Tue, 6 Sep 2011 13:42:10 +0000 (UTC)
commit 6ca01779eb9e3cbca5f01271b99ee9327ccb145b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Sep 6 09:41:28 2011 -0400
loadmore: use ngettext() instead of gettext() for plural forms
https://bugzilla.gnome.org/show_bug.cgi?id=658109
src/loadMore.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/loadMore.js b/src/loadMore.js
index 41b83a6..dc0c168 100644
--- a/src/loadMore.js
+++ b/src/loadMore.js
@@ -21,6 +21,7 @@
const Global = imports.global;
+const Gettext = imports.gettext;
const Gtk = imports.gi.Gtk;
const _ = imports.gettext.gettext;
@@ -66,7 +67,9 @@ LoadMoreButton.prototype = {
if (remainingDocs > offsetStep)
remainingDocs = offsetStep;
- this.widget.label = _("Load %d more documents").format(remainingDocs);
+ this.widget.label = Gettext.ngettext("Load %d more documents",
+ "Load %d more documents",
+ remainingDocs).format(remainingDocs);
this.widget.show();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]