mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
Reorganize key names
See [flarum/core #265](https://github.com/flarum/core/issues/265). - Adjusts key names to three-tier namespacing. - Extracts previously unextracted strings.
This commit is contained in:
parent
f0a96c3e1c
commit
5db360afca
|
@ -6,23 +6,23 @@ export default class PusherSettingsModal extends SettingsModal {
|
|||
}
|
||||
|
||||
title() {
|
||||
return 'Pusher Settings';
|
||||
return app.translator.trans('flarum-pusher.admin.pusher_settings.title');
|
||||
}
|
||||
|
||||
form() {
|
||||
return [
|
||||
<div className="Form-group">
|
||||
<label>App ID</label>
|
||||
<label>{app.translator.trans('flarum-pusher.admin.pusher_settings.app_id_label')}</label>
|
||||
<input className="FormControl" bidi={this.setting('flarum-pusher.app_id')}/>
|
||||
</div>,
|
||||
|
||||
<div className="Form-group">
|
||||
<label>App Key</label>
|
||||
<label>{app.translator.trans('flarum-pusher.admin.pusher_settings.app_key_label')}</label>
|
||||
<input className="FormControl" bidi={this.setting('flarum-pusher.app_key')}/>
|
||||
</div>,
|
||||
|
||||
<div className="Form-group">
|
||||
<label>App Secret</label>
|
||||
<label>{app.translator.trans('flarum-pusher.admin.pusher_settings.app_secret_label')}</label>
|
||||
<input className="FormControl" bidi={this.setting('flarum-pusher.app_secret')}/>
|
||||
</div>
|
||||
];
|
||||
|
|
|
@ -79,7 +79,7 @@ app.initializers.add('flarum-pusher', () => {
|
|||
this.loadingUpdated = true;
|
||||
},
|
||||
loading: this.loadingUpdated,
|
||||
children: app.translator.transChoice('flarum-pusher.forum.show_updated_discussions', count, {count})
|
||||
children: app.translator.transChoice('flarum-pusher.forum.discussion_list.show_updates_text', count, {count})
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user