1
0
mirror of https://github.com/flarum/core.git synced 2025-07-10 11:26: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:
dcsjapan
2015-09-23 14:58:33 +09:00
parent ee9862004d
commit d5d7185794
40 changed files with 344 additions and 210 deletions

View File

@ -37,7 +37,7 @@ export default class EditUserModal extends Modal {
<div className="Form">
<div className="Form-group">
<label>Username</label>
<input className="FormControl" placeholder={app.trans('core.username')}
<input className="FormControl" placeholder={app.trans('core.edit_user_username_label')}
value={this.username()}
onchange={m.withAttr('value', this.username)} />
</div>
@ -45,7 +45,7 @@ export default class EditUserModal extends Modal {
<div className="Form-group">
<label>Email</label>
<div>
<input className="FormControl" placeholder={app.trans('core.email')}
<input className="FormControl" placeholder={app.trans('core.edit_user_email_label')}
value={this.email()}
onchange={m.withAttr('value', this.email)} />
</div>
@ -64,7 +64,7 @@ export default class EditUserModal extends Modal {
Set new password
</label>
{this.setPassword() ? (
<input className="FormControl" type="password" name="password" placeholder={app.trans('core.password')}
<input className="FormControl" type="password" name="password" placeholder={app.trans('core.edit_user_password_label')}
value={this.password()}
onchange={m.withAttr('value', this.password)} />
) : ''}
@ -93,7 +93,7 @@ export default class EditUserModal extends Modal {
className: 'Button Button--primary',
type: 'submit',
loading: this.loading,
children: app.trans('core.save_changes')
children: app.trans('core.edit_user_submit_button')
})}
</div>
</div>