From 7b24c82f6fc4e57362632c9fb1a46c9aff819c87 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sat, 29 Aug 2015 21:53:37 +0200 Subject: [PATCH] Make Tags item translateable --- extensions/tags/js/forum/src/addTagList.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/addTagList.js b/extensions/tags/js/forum/src/addTagList.js index a91ac4fa1..654b2759f 100644 --- a/extensions/tags/js/forum/src/addTagList.js +++ b/extensions/tags/js/forum/src/addTagList.js @@ -13,7 +13,7 @@ export default function() { extend(IndexPage.prototype, 'navItems', function(items) { items.add('tags', LinkButton.component({ icon: 'th-large', - children: 'Tags', + children: app.trans('tags.tags'), href: app.route('tags') }), -10); diff --git a/extensions/tags/locale/en.yml b/extensions/tags/locale/en.yml index 9b2593bfd..2bcdb9c0d 100644 --- a/extensions/tags/locale/en.yml +++ b/extensions/tags/locale/en.yml @@ -1,4 +1,5 @@ tags: + tags: Tags2 discussion_tagged_post: one: "{username} {action} tag." other: "{username} {action} tags." diff --git a/extensions/tags/src/Listeners/AddClientAssets.php b/extensions/tags/src/Listeners/AddClientAssets.php index cb59ed134..4691035cb 100755 --- a/extensions/tags/src/Listeners/AddClientAssets.php +++ b/extensions/tags/src/Listeners/AddClientAssets.php @@ -29,6 +29,7 @@ class AddClientAssets $event->forumBootstrapper('tags/main'); $event->forumTranslations([ + 'tags.tags', 'tags.discussion_tagged_post', 'tags.added_tags', 'tags.removed_tags',