[polari] mainWindow: Use ngettext for plural string
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] mainWindow: Use ngettext for plural string
- Date: Thu, 26 Feb 2015 11:53:11 +0000 (UTC)
commit fc3f3299cdec7c8edce8b3e7cdbdb956e0d19ee3
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Feb 26 12:40:08 2015 +0100
mainWindow: Use ngettext for plural string
Commit afa37a11c2f0ed added a more descriptive accessible name for the
user-list button, but marked it incorrectly for translation - use the
correct gettext function to allow correct translations according to the
locale's plural rules.
https://bugzilla.gnome.org/show_bug.cgi?id=745203
src/mainWindow.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 7f31b7e..bb11d52 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -301,7 +301,8 @@ const MainWindow = new Lang.Class({
this._room.channel.has_interface(Tp.IFACE_CHANNEL_INTERFACE_GROUP))
numMembers = this._room.channel.group_dup_members_contacts().length;
- let accessibleName = _("%d users".format(numMembers));
+ let accessibleName = ngettext("%d user",
+ "%d users", numMembers).format(numMembers);
this._showUserListButton.get_accessible().set_name(accessibleName);
this._showUserListButton.label = '%d'.format(numMembers);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]