1
0
mirror of https://github.com/flarum/core.git synced 2025-07-10 03:16:22 +02:00

Extract admin strings

Adds app.trans calls for strings used by the admin UI.
- Strings for AddExtensionModal.js not included.
- Corresponding YAML will be sent later w/ more extracted strings.
This commit is contained in:
dcsjapan
2015-10-05 19:06:41 +09:00
parent 232f3b6bc6
commit 4725ac4131
11 changed files with 84 additions and 82 deletions

View File

@ -27,9 +27,9 @@ export default class PermissionDropdown extends Dropdown {
const adminGroup = app.store.getById('groups', Group.ADMINISTRATOR_ID);
if (everyone) {
this.props.label = 'Everyone';
this.props.label = app.trans('core.admin.permissions_dropdown_everyone_button');
} else if (members) {
this.props.label = 'Members';
this.props.label = app.trans('core.admin.permissions_dropdown_members_button');
} else {
this.props.label = [
badgeForId(Group.ADMINISTRATOR_ID),
@ -40,7 +40,7 @@ export default class PermissionDropdown extends Dropdown {
if (this.props.allowGuest) {
this.props.children.push(
Button.component({
children: 'Everyone',
children: app.trans('core.admin.permissions_dropdown_everyone_button'),
icon: everyone ? 'check' : true,
onclick: () => this.save([Group.GUEST_ID])
})
@ -49,7 +49,7 @@ export default class PermissionDropdown extends Dropdown {
this.props.children.push(
Button.component({
children: 'Members',
children: app.trans('core.admin.permissions_dropdown_members_button'),
icon: members ? 'check' : true,
onclick: () => this.save([Group.MEMBER_ID])
}),