Merge pull request #4067 from fantasticfears/translation

FIX: Add missing translation in groups page
This commit is contained in:
Régis Hanol 2016-03-08 15:58:34 +01:00
commit cf140aaaec
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"