Use plurals in WhoIsTyping
This commit is contained in:
parent
4ff369c884
commit
6406fc3865
1 changed files with 2 additions and 4 deletions
|
@ -68,9 +68,7 @@ module.exports = {
|
||||||
const names = whoIsTyping.map(function(m) {
|
const names = whoIsTyping.map(function(m) {
|
||||||
return m.name;
|
return m.name;
|
||||||
});
|
});
|
||||||
if (othersCount==1) {
|
if (othersCount>=1) {
|
||||||
return _t('%(names)s and one other are typing', {names: names.slice(0, limit - 1).join(', ')});
|
|
||||||
} else if (othersCount>1) {
|
|
||||||
return _t('%(names)s and %(count)s others are typing', {names: names.slice(0, limit - 1).join(', '), count: othersCount});
|
return _t('%(names)s and %(count)s others are typing', {names: names.slice(0, limit - 1).join(', '), count: othersCount});
|
||||||
} else {
|
} else {
|
||||||
const lastPerson = names.pop();
|
const lastPerson = names.pop();
|
||||||
|
|
Loading…
Reference in a new issue