mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 07:09:57 +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:
@ -40,7 +40,7 @@ export default class UserCard extends Component {
|
||||
className: 'UserCard-controls App-primaryControl',
|
||||
menuClassName: 'Dropdown-menu--right',
|
||||
buttonClassName: this.props.controlsButtonClassName,
|
||||
label: app.trans('core.controls'),
|
||||
label: app.trans('core.user_controls_button'),
|
||||
icon: 'ellipsis-v'
|
||||
}) : ''}
|
||||
|
||||
@ -95,13 +95,13 @@ export default class UserCard extends Component {
|
||||
items.add('lastSeen', (
|
||||
<span className={'UserCard-lastSeen' + (online ? ' online' : '')}>
|
||||
{online
|
||||
? [icon('circle'), ' ', app.trans('core.online')]
|
||||
? [icon('circle'), ' ', app.trans('core.user_online_text')]
|
||||
: [icon('clock-o'), ' ', humanTime(lastSeenTime)]}
|
||||
</span>
|
||||
));
|
||||
}
|
||||
|
||||
items.add('joined', app.trans('core.joined', {ago: humanTime(user.joinTime())}));
|
||||
items.add('joined', app.trans('core.user_joined_date_text', {ago: humanTime(user.joinTime())}));
|
||||
|
||||
return items;
|
||||
}
|
||||
|
Reference in New Issue
Block a user