mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 07:09:57 +08:00
Add third tier to key namespacing
- Changes all `app.trans` calls to `app.translator.trans` calls. - Changes existing keys to [three-tier namespace structure](https://github.com/flarum/english/pull/12). - Extracts additional strings for `lib:` namespace. - Extracts two previously missed strings for EditGroupModal.js.
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.forum.user_controls_button'),
|
||||
label: app.translator.trans('core.forum.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.forum.user_online_text')]
|
||||
? [icon('circle'), ' ', app.translator.trans('core.forum.user.online_text')]
|
||||
: [icon('clock-o'), ' ', humanTime(lastSeenTime)]}
|
||||
</span>
|
||||
));
|
||||
}
|
||||
|
||||
items.add('joined', app.trans('core.forum.user_joined_date_text', {ago: humanTime(user.joinTime())}));
|
||||
items.add('joined', app.translator.trans('core.forum.user.joined_date_text', {ago: humanTime(user.joinTime())}));
|
||||
|
||||
return items;
|
||||
}
|
||||
|
Reference in New Issue
Block a user