mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 15:49:58 +08: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:
@ -17,7 +17,7 @@ export default class SettingsPage extends UserPage {
|
||||
super(...args);
|
||||
|
||||
this.show(app.session.user);
|
||||
app.setTitle(app.trans('core.settings'));
|
||||
app.setTitle(app.trans('core.settings_title'));
|
||||
}
|
||||
|
||||
content() {
|
||||
@ -38,7 +38,7 @@ export default class SettingsPage extends UserPage {
|
||||
|
||||
items.add('account',
|
||||
FieldSet.component({
|
||||
label: app.trans('core.account'),
|
||||
label: app.trans('core.settings_account_heading'),
|
||||
className: 'Settings-account',
|
||||
children: this.accountItems().toArray()
|
||||
})
|
||||
@ -46,7 +46,7 @@ export default class SettingsPage extends UserPage {
|
||||
|
||||
items.add('notifications',
|
||||
FieldSet.component({
|
||||
label: app.trans('core.notifications'),
|
||||
label: app.trans('core.settings_notifications_heading'),
|
||||
className: 'Settings-notifications',
|
||||
children: [NotificationGrid.component({user: this.user})]
|
||||
})
|
||||
@ -54,7 +54,7 @@ export default class SettingsPage extends UserPage {
|
||||
|
||||
items.add('privacy',
|
||||
FieldSet.component({
|
||||
label: app.trans('core.privacy'),
|
||||
label: app.trans('core.settings_privacy_heading'),
|
||||
className: 'Settings-privacy',
|
||||
children: this.privacyItems().toArray()
|
||||
})
|
||||
@ -73,7 +73,7 @@ export default class SettingsPage extends UserPage {
|
||||
|
||||
items.add('changePassword',
|
||||
Button.component({
|
||||
children: app.trans('core.change_password'),
|
||||
children: app.trans('core.settings_change_password_button'),
|
||||
className: 'Button',
|
||||
onclick: () => app.modal.show(new ChangePasswordModal())
|
||||
})
|
||||
@ -81,7 +81,7 @@ export default class SettingsPage extends UserPage {
|
||||
|
||||
items.add('changeEmail',
|
||||
Button.component({
|
||||
children: app.trans('core.change_email'),
|
||||
children: app.trans('core.settings_change_email_button'),
|
||||
className: 'Button',
|
||||
onclick: () => app.modal.show(new ChangeEmailModal())
|
||||
})
|
||||
@ -118,7 +118,7 @@ export default class SettingsPage extends UserPage {
|
||||
|
||||
items.add('discloseOnline',
|
||||
Switch.component({
|
||||
children: app.trans('core.disclose_online'),
|
||||
children: app.trans('core.settings_privacy_disclose_online_label'),
|
||||
state: this.user.preferences().discloseOnline,
|
||||
onchange: (value, component) => {
|
||||
this.user.pushAttributes({lastSeenTime: null});
|
||||
|
Reference in New Issue
Block a user