FIX: Add missing translation in groups page

This commit is contained in:
Erick Guan 2016-03-08 12:23:04 +01:00
parent df413737d2
commit e9bff2e550
3 changed files with 10 additions and 2 deletions

View File

@ -4,6 +4,11 @@ var Tab = Em.Object.extend({
@computed('name')
location(name) {
return 'group.' + name;
},
@computed('name')
message(name) {
return I18n.t('groups.' + name);
}
});

View File

@ -4,8 +4,8 @@
<ul class='action-list nav-stacked'>
{{#each tabs as |tab|}}
<li class="{{if tab.active 'active'}}">
{{#link-to tab.location model}}
{{tab.name}}
{{#link-to tab.location model title=tab.message}}
{{tab.message}}
{{#if tab.count}}<span class='count'>({{tab.count}})</span>{{/if}}
{{/link-to}}
</li>

View File

@ -364,7 +364,10 @@ en:
one: "group"
other: "groups"
members: "Members"
topics: "Topics"
posts: "Posts"
mentions: "Mentions"
messages: "Messages"
alias_levels:
title: "Who can message and @mention this group?"
nobody: "Nobody"