diff --git a/framework/core/js/admin/src/components/AdminNav.js b/framework/core/js/admin/src/components/AdminNav.js index 90ba70ba1..aa035977c 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: 'Dashboard', - description: 'Your forum at a glance.' + children: app.trans('core.admin.nav_dashboard_button'), + description: app.trans('core.admin.nav_dashboard_text') })); items.add('basics', AdminLinkButton.component({ href: app.route('basics'), icon: 'pencil', - children: 'Basics', - description: 'Set your forum title, language, and other basic settings.' + children: app.trans('core.admin.nav_basics_button'), + description: app.trans('core.admin.nav_basics_text') })); items.add('permissions', AdminLinkButton.component({ href: app.route('permissions'), icon: 'key', - children: 'Permissions', - description: 'Configure who can see and do what.' + children: app.trans('core.admin.nav_permissions_button'), + description: app.trans('core.admin.nav_permissions_text') })); items.add('appearance', AdminLinkButton.component({ href: app.route('appearance'), icon: 'paint-brush', - children: 'Appearance', - description: 'Customize your forum\'s colors, logos, and other variables.' + children: app.trans('core.admin.nav_appearance_button'), + description: app.trans('core.admin.nav_appearance_text') })); items.add('extensions', AdminLinkButton.component({ href: app.route('extensions'), icon: 'puzzle-piece', - children: 'Extensions', - description: 'Add extra functionality to your forum and make it your own.' + children: app.trans('core.admin.nav_extensions_button'), + description: app.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 2b6fd436c..2f97c7d48 100644 --- a/framework/core/js/admin/src/components/AppearancePage.js +++ b/framework/core/js/admin/src/components/AppearancePage.js @@ -20,9 +20,9 @@ export default class AppearancePage extends Component {
- Colors + {app.trans('core.admin.appearance_colors_heading')}
- Choose two colors to theme your forum with. The first will be used as a highlight color, while the second will be used to style background elements. + {app.trans('core.admin.appearance_colors_text')}
@@ -32,33 +32,33 @@ export default class AppearancePage extends Component { {Switch.component({ state: this.darkMode(), - children: 'Dark Mode', + children: app.trans('core.admin.appearance_dark_mode_label'), onchange: this.darkMode })} {Switch.component({ state: this.coloredHeader(), - children: 'Colored Header', + children: app.trans('core.admin.appearance_colored_header_label'), onchange: this.coloredHeader })} {Button.component({ className: 'Button Button--primary', type: 'submit', - children: 'Save Changes', + children: app.trans('core.admin.appearance_submit_button'), loading: this.loading })}
- Custom Styles + {app.trans('core.admin.appearance_custom_styles_heading')}
- Customize your forum's appearance by adding your own LESS/CSS code to be applied on top of Flarum's default styles. + {app.trans('core.admin.appearance_custom_styles_text')}
{Button.component({ className: 'Button', - children: 'Edit Custom CSS', + children: app.trans('core.admin.appearance_edit_css_button'), onclick: () => app.modal.show(new EditCustomCssModal()) })}
@@ -73,7 +73,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('Please enter a hexadecimal color code.'); + alert(app.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 bc0d0a838..7e5892d7c 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: 'Forum Title', + label: app.trans('core.admin.basics_forum_title_heading'), children: [ ] })} {FieldSet.component({ - label: 'Forum Description', + label: app.trans('core.admin.basics_forum_description_heading'), children: [
- Enter a short sentence or two that describes your community. This will appear in the meta tag and show up in search engines. + {app.trans('core.admin.basics_forum_description_text')}
,