parent
c2fa61d0b4
commit
24f3763836
2 changed files with 38 additions and 4 deletions
|
@ -76,15 +76,15 @@
|
|||
if (this.isGroupUpdate()) {
|
||||
var group_update = this.get('group_update');
|
||||
if (group_update.left) {
|
||||
return group_update.left + ' left the group.';
|
||||
return i18n('leftTheGroup', group_update.left);
|
||||
}
|
||||
|
||||
var messages = ['Updated the group.'];
|
||||
var messages = [i18n('updatedTheGroup')];
|
||||
if (group_update.name) {
|
||||
messages.push("Title is now '" + group_update.name + "'.");
|
||||
messages.push(i18n('titleIsNow', group_update.name));
|
||||
}
|
||||
if (group_update.joined) {
|
||||
messages.push(group_update.joined.join(', ') + ' joined the group.');
|
||||
messages.push(i18n('joinedTheGroup', group_update.joined.join(', ')));
|
||||
}
|
||||
|
||||
return messages.join(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue