diff --git a/framework/core/js/admin/src/components/AdminNav.js b/framework/core/js/admin/src/components/AdminNav.js index aa035977c..240872467 100644 --- a/framework/core/js/admin/src/components/AdminNav.js +++ b/framework/core/js/admin/src/components/AdminNav.js @@ -35,36 +35,36 @@ export default class AdminNav extends Component { items.add('dashboard', AdminLinkButton.component({ href: app.route('dashboard'), icon: 'bar-chart', - children: app.trans('core.admin.nav_dashboard_button'), - description: app.trans('core.admin.nav_dashboard_text') + children: app.translator.trans('core.admin.nav.dashboard_button'), + description: app.translator.trans('core.admin.nav.dashboard_text') })); items.add('basics', AdminLinkButton.component({ href: app.route('basics'), icon: 'pencil', - children: app.trans('core.admin.nav_basics_button'), - description: app.trans('core.admin.nav_basics_text') + children: app.translator.trans('core.admin.nav.basics_button'), + description: app.translator.trans('core.admin.nav.basics_text') })); items.add('permissions', AdminLinkButton.component({ href: app.route('permissions'), icon: 'key', - children: app.trans('core.admin.nav_permissions_button'), - description: app.trans('core.admin.nav_permissions_text') + children: app.translator.trans('core.admin.nav.permissions_button'), + description: app.translator.trans('core.admin.nav.permissions_text') })); items.add('appearance', AdminLinkButton.component({ href: app.route('appearance'), icon: 'paint-brush', - children: app.trans('core.admin.nav_appearance_button'), - description: app.trans('core.admin.nav_appearance_text') + children: app.translator.trans('core.admin.nav.appearance_button'), + description: app.translator.trans('core.admin.nav.appearance_text') })); items.add('extensions', AdminLinkButton.component({ href: app.route('extensions'), icon: 'puzzle-piece', - children: app.trans('core.admin.nav_extensions_button'), - description: app.trans('core.admin.nav_extensions_text') + children: app.translator.trans('core.admin.nav.extensions_button'), + description: app.translator.trans('core.admin.nav.extensions_text') })); return items; diff --git a/framework/core/js/admin/src/components/AppearancePage.js b/framework/core/js/admin/src/components/AppearancePage.js index 319b38902..8485ee44d 100644 --- a/framework/core/js/admin/src/components/AppearancePage.js +++ b/framework/core/js/admin/src/components/AppearancePage.js @@ -18,9 +18,9 @@ export default class AppearancePage extends Component {
- {app.trans('core.admin.appearance_colors_heading')} + {app.translator.trans('core.admin.appearance.colors_heading')}
- {app.trans('core.admin.appearance_colors_text')} + {app.translator.trans('core.admin.appearance.colors_text')}
@@ -30,33 +30,33 @@ export default class AppearancePage extends Component { {Switch.component({ state: this.darkMode(), - children: app.trans('core.admin.appearance_dark_mode_label'), + children: app.translator.trans('core.admin.appearance.dark_mode_label'), onchange: this.darkMode })} {Switch.component({ state: this.coloredHeader(), - children: app.trans('core.admin.appearance_colored_header_label'), + children: app.translator.trans('core.admin.appearance.colored_header_label'), onchange: this.coloredHeader })} {Button.component({ className: 'Button Button--primary', type: 'submit', - children: app.trans('core.admin.appearance_submit_button'), + children: app.translator.trans('core.admin.appearance.submit_button'), loading: this.loading })}
- {app.trans('core.admin.appearance_custom_styles_heading')} + {app.translator.trans('core.admin.appearance.custom_styles_heading')}
- {app.trans('core.admin.appearance_custom_styles_text')} + {app.translator.trans('core.admin.appearance.custom_styles_text')}
{Button.component({ className: 'Button', - children: app.trans('core.admin.appearance_edit_css_button'), + children: app.translator.trans('core.admin.appearance.edit_css_button'), onclick: () => app.modal.show(new EditCustomCssModal()) })}
@@ -71,7 +71,7 @@ export default class AppearancePage extends Component { const hex = /^#[0-9a-f]{3}([0-9a-f]{3})?$/i; if (!hex.test(this.primaryColor()) || !hex.test(this.secondaryColor())) { - alert(app.trans('core.admin.appearance_enter_hex_message')); + alert(app.translator.trans('core.admin.appearance.enter_hex_message')); return; } diff --git a/framework/core/js/admin/src/components/BasicsPage.js b/framework/core/js/admin/src/components/BasicsPage.js index 1d5f5f901..def963cc9 100644 --- a/framework/core/js/admin/src/components/BasicsPage.js +++ b/framework/core/js/admin/src/components/BasicsPage.js @@ -36,17 +36,17 @@ export default class BasicsPage extends Component {
{FieldSet.component({ - label: app.trans('core.admin.basics_forum_title_heading'), + label: app.translator.trans('core.admin.basics.forum_title_heading'), children: [ ] })} {FieldSet.component({ - label: app.trans('core.admin.basics_forum_description_heading'), + label: app.translator.trans('core.admin.basics.forum_description_heading'), children: [
- {app.trans('core.admin.basics_forum_description_text')} + {app.translator.trans('core.admin.basics.forum_description_text')}
,