Commit fc3f3299 authored by Florian Müllner's avatar Florian Müllner

mainWindow: Use ngettext for plural string

Commit afa37a11 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
parent 3bb848c6
......@@ -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);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment