Make "Choose Tags" link translatable

closes flarum/core#345
This commit is contained in:
Toby Zerner 2015-08-31 10:56:08 +09:30
parent fc2025bf44
commit b286ff82e0
3 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default function() {
<a className="DiscussionComposer-changeTags" onclick={this.chooseTags.bind(this)}>
{this.tags.length
? tagsLabel(this.tags)
: <span className="TagLabel untagged">Choose Tags</span>}
: <span className="TagLabel untagged">{app.trans('tags.tag_new_discussion_link')}</span>}
</a>
), 10);
});

View File

@ -6,6 +6,7 @@ tags:
added_tags: "added the {tags}"
removed_tags: "removed the {tags}"
tag_new_discussion_title: Choose Tags for Your Discussion
tag_new_discussion_link: Choose Tags
edit_discussion_tags_title: "Edit Tags for {title}"
edit_discussion_tags_link: Edit Tags
choose_primary_tags:

View File

@ -34,6 +34,7 @@ class AddClientAssets
'tags.added_tags',
'tags.removed_tags',
'tags.tag_new_discussion_title',
'tags.tag_new_discussion_link',
'tags.edit_discussion_tags_title',
'tags.edit_discussion_tags_link',
'tags.choose_primary_tags',