mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Primary key renaming
Improved consistency for existing core translation key names. See flarum/core#265 - Completely overhauled core en.yml - Replaced existing key names in all core JS files to match - Extracted a hardcoded string in IndexPage.js - Combined two app.trans calls in DiscussionControls.js - Removed hardcoded spaces from LogInModal.js and SignUpModal.js - Added two new keys from DiscussionControls.js (soft delete) - Created two new “reused keys” to YML to accommodate same
This commit is contained in:
@@ -47,7 +47,7 @@ export default class SessionDropdown extends Dropdown {
|
||||
items.add('profile',
|
||||
LinkButton.component({
|
||||
icon: 'user',
|
||||
children: app.trans('core.profile'),
|
||||
children: app.trans('core.header_profile_button'),
|
||||
href: app.route.user(user)
|
||||
}),
|
||||
100
|
||||
@@ -56,7 +56,7 @@ export default class SessionDropdown extends Dropdown {
|
||||
items.add('settings',
|
||||
LinkButton.component({
|
||||
icon: 'cog',
|
||||
children: app.trans('core.settings'),
|
||||
children: app.trans('core.header_settings_button'),
|
||||
href: app.route('settings')
|
||||
}),
|
||||
50
|
||||
@@ -66,7 +66,7 @@ export default class SessionDropdown extends Dropdown {
|
||||
items.add('administration',
|
||||
LinkButton.component({
|
||||
icon: 'wrench',
|
||||
children: app.trans('core.administration'),
|
||||
children: app.trans('core.header_admin_button'),
|
||||
href: app.forum.attribute('baseUrl') + '/admin',
|
||||
target: '_blank',
|
||||
config: () => {}
|
||||
@@ -80,7 +80,7 @@ export default class SessionDropdown extends Dropdown {
|
||||
items.add('logOut',
|
||||
Button.component({
|
||||
icon: 'sign-out',
|
||||
children: app.trans('core.log_out'),
|
||||
children: app.trans('core.header_log_out_button'),
|
||||
onclick: app.session.logout.bind(app.session)
|
||||
}),
|
||||
-100
|
||||
|
Reference in New Issue
Block a user