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:
dcsjapan 2015-10-21 17:38:53 +09:00
parent f0a96c3e1c
commit 5db360afca
2 changed files with 5 additions and 5 deletions

View File

@ -6,23 +6,23 @@ export default class PusherSettingsModal extends SettingsModal {
} }
title() { title() {
return 'Pusher Settings'; return app.translator.trans('flarum-pusher.admin.pusher_settings.title');
} }
form() { form() {
return [ return [
<div className="Form-group"> <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')}/> <input className="FormControl" bidi={this.setting('flarum-pusher.app_id')}/>
</div>, </div>,
<div className="Form-group"> <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')}/> <input className="FormControl" bidi={this.setting('flarum-pusher.app_key')}/>
</div>, </div>,
<div className="Form-group"> <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')}/> <input className="FormControl" bidi={this.setting('flarum-pusher.app_secret')}/>
</div> </div>
]; ];

View File

@ -79,7 +79,7 @@ app.initializers.add('flarum-pusher', () => {
this.loadingUpdated = true; this.loadingUpdated = true;
}, },
loading: this.loadingUpdated, 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})
}) })
); );
} }