From b286ff82e0bba27759df93a1e0e126fa49170f9e Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 31 Aug 2015 10:56:08 +0930 Subject: [PATCH] Make "Choose Tags" link translatable closes flarum/core#345 --- extensions/tags/js/forum/src/addTagComposer.js | 2 +- extensions/tags/locale/en.yml | 1 + extensions/tags/src/Listeners/AddClientAssets.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/tags/js/forum/src/addTagComposer.js b/extensions/tags/js/forum/src/addTagComposer.js index 8b228f35f..edffe4e19 100644 --- a/extensions/tags/js/forum/src/addTagComposer.js +++ b/extensions/tags/js/forum/src/addTagComposer.js @@ -35,7 +35,7 @@ export default function() { {this.tags.length ? tagsLabel(this.tags) - : Choose Tags} + : {app.trans('tags.tag_new_discussion_link')}} ), 10); }); diff --git a/extensions/tags/locale/en.yml b/extensions/tags/locale/en.yml index 794ac7ef1..e3af0cabf 100644 --- a/extensions/tags/locale/en.yml +++ b/extensions/tags/locale/en.yml @@ -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: diff --git a/extensions/tags/src/Listeners/AddClientAssets.php b/extensions/tags/src/Listeners/AddClientAssets.php index 4691035cb..c2934b513 100755 --- a/extensions/tags/src/Listeners/AddClientAssets.php +++ b/extensions/tags/src/Listeners/AddClientAssets.php @@ -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',