Merge pull request #3 from dcsjapan/key-reorganization

Reorganize key names
This commit is contained in:
Franz Liedke 2015-10-21 13:06:59 +02:00
commit 1ffb7a2176
2 changed files with 5 additions and 5 deletions

View File

@ -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>
];

View File

@ -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})
})
);
}