use propper ellipsis character

This commit is contained in:
Bruno Windels 2018-11-14 10:06:08 +01:00
parent 36bc83ce03
commit 3d42ea1c0a
2 changed files with 7 additions and 7 deletions

View file

@ -63,16 +63,16 @@ module.exports = {
if (whoIsTyping.length == 0) {
return '';
} else if (whoIsTyping.length == 1) {
return _t('%(displayName)s is typing ...', {displayName: whoIsTyping[0].name});
return _t('%(displayName)s is typing ', {displayName: whoIsTyping[0].name});
}
const names = whoIsTyping.map(function(m) {
return m.name;
});
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 {
const lastPerson = names.pop();
return _t('%(names)s and %(lastPerson)s are typing ...', {names: names.join(', '), lastPerson: lastPerson});
return _t('%(names)s and %(lastPerson)s are typing ', {names: names.join(', '), lastPerson: lastPerson});
}
},
};