Fix i19n on truncatedlist & friends to be sane

Use the proper counterpart tool for plurals rather than if > 1.
Fix up all the translation files respectively.
This commit is contained in:
David Baker 2017-07-25 15:59:06 +01:00
parent b589fcc3b0
commit fa7a9818c6
18 changed files with 69 additions and 40 deletions

View file

@ -117,9 +117,7 @@ var SearchableEntityList = React.createClass({
_createOverflowEntity: function(overflowCount, totalCount) {
var EntityTile = sdk.getComponent("rooms.EntityTile");
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
var text = (overflowCount > 1)
? _t("and %(overflowCount)s others...", { overflowCount: overflowCount })
: _t("and one other...");
const text = _t("and %(count)s others...", { count: overflowCount });
return (
<EntityTile className="mx_EntityTile_ellipsis" avatarJsx={
<BaseAvatar url="img/ellipsis.svg" name="..." width={36} height={36} />