mirror of
https://github.com/flarum/core.git
synced 2025-10-10 22:44:25 +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:
@@ -64,7 +64,7 @@ export default class HeaderSecondary extends Component {
|
||||
if (app.forum.attribute('allowSignUp')) {
|
||||
items.add('signUp',
|
||||
Button.component({
|
||||
children: app.trans('core.sign_up'),
|
||||
children: app.trans('core.header_sign_up_link'),
|
||||
className: 'Button Button--link',
|
||||
onclick: () => app.modal.show(new SignUpModal())
|
||||
}), 10
|
||||
@@ -73,7 +73,7 @@ export default class HeaderSecondary extends Component {
|
||||
|
||||
items.add('logIn',
|
||||
Button.component({
|
||||
children: app.trans('core.log_in'),
|
||||
children: app.trans('core.header_log_in_link'),
|
||||
className: 'Button Button--link',
|
||||
onclick: () => app.modal.show(new LogInModal())
|
||||
}), 0
|
||||
|
Reference in New Issue
Block a user