diff --git a/extensions/tags/js/admin/src/addTagPermission.js b/extensions/tags/js/admin/src/addTagPermission.js index d71262344..1a09145b0 100644 --- a/extensions/tags/js/admin/src/addTagPermission.js +++ b/extensions/tags/js/admin/src/addTagPermission.js @@ -5,7 +5,7 @@ export default function() { extend(PermissionGrid.prototype, 'moderateItems', items => { items.add('tag', { icon: 'tag', - label: 'Tag discussions', + label: app.translator.trans('flarum-tags.admin.permissions.tag_discussions_label'), permission: 'discussion.tag' }, 95); }); diff --git a/extensions/tags/js/admin/src/addTagsHomePageOption.js b/extensions/tags/js/admin/src/addTagsHomePageOption.js index b90b3eefa..1d9438314 100644 --- a/extensions/tags/js/admin/src/addTagsHomePageOption.js +++ b/extensions/tags/js/admin/src/addTagsHomePageOption.js @@ -5,7 +5,7 @@ export default function() { extend(BasicsPage.prototype, 'homePageItems', items => { items.add('tags', { path: '/tags', - label: 'Tags' + label: app.translator.trans('flarum-tags.admin.basics.tags_label') }); }); } diff --git a/extensions/tags/js/admin/src/addTagsPane.js b/extensions/tags/js/admin/src/addTagsPane.js index 81deeac58..56bbb9b98 100644 --- a/extensions/tags/js/admin/src/addTagsPane.js +++ b/extensions/tags/js/admin/src/addTagsPane.js @@ -13,8 +13,8 @@ export default function() { items.add('tags', AdminLinkButton.component({ href: app.route('tags'), icon: 'tags', - children: 'Tags', - description: 'Manage the list of tags available to organise discussions with.' + children: app.translator.trans('flarum-tags.admin.nav.tags_button'), + description: app.translator.trans('flarum-tags.admin.nav.tags_text') })); }); } diff --git a/extensions/tags/js/admin/src/addTagsPermissionScope.js b/extensions/tags/js/admin/src/addTagsPermissionScope.js index e816bbdb9..d6b50ecfe 100644 --- a/extensions/tags/js/admin/src/addTagsPermissionScope.js +++ b/extensions/tags/js/admin/src/addTagsPermissionScope.js @@ -37,7 +37,7 @@ export default function() { items.add('tag', Dropdown.component({ className: 'Dropdown--restrictByTag', buttonClassName: 'Button Button--text', - label: 'Restrict by Tag', + label: app.translator.trans('flarum-tags.admin.permissions.restrict_by_tag_heading'), icon: 'plus', caretIcon: null, children: tags.map(tag => Button.component({ diff --git a/extensions/tags/js/admin/src/components/EditTagModal.js b/extensions/tags/js/admin/src/components/EditTagModal.js index a38022363..2d762c5ef 100644 --- a/extensions/tags/js/admin/src/components/EditTagModal.js +++ b/extensions/tags/js/admin/src/components/EditTagModal.js @@ -31,7 +31,7 @@ export default class EditTagModal extends Modal { name: this.name, color: this.color }) - : 'Create Tag'; + : app.translator.trans('flarum-tags.admin.edit_tag.title'); } content() { @@ -39,25 +39,25 @@ export default class EditTagModal extends Modal {
- - { + + { this.name(e.target.value); this.slug(slug(e.target.value)); }}/>
- +
- +