Commit latest dist files

See https://github.com/flarum/core/issues/727#issuecomment-172384020
This commit is contained in:
Toby Zerner 2016-01-19 16:52:10 +10:30
parent e087b04e6b
commit d9eb2b8e02
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/compo
}, { }, {
key: 'title', key: 'title',
value: function title() { value: function title() {
return 'Akismet Settings'; return app.translator.trans('flarum-akismet.admin.akismet_settings.title');
} }
}, { }, {
key: 'form', key: 'form',
@ -34,7 +34,7 @@ System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/compo
m( m(
'label', 'label',
null, null,
'API Key' app.translator.trans('flarum-akismet.admin.akismet_settings.api_key_label')
), ),
m('input', { className: 'FormControl', bidi: this.setting('flarum-akismet.api_key') }) m('input', { className: 'FormControl', bidi: this.setting('flarum-akismet.api_key') })
)]; )];

View File

@ -23,14 +23,14 @@ System.register('flarum/akismet/main', ['flarum/extend', 'flarum/app', 'flarum/u
if (flags && flags.some(function (flag) { if (flags && flags.some(function (flag) {
return flag.type() === 'akismet'; return flag.type() === 'akismet';
})) { })) {
items.get('approve').props.children = 'Not Spam'; items.get('approve').props.children = app.translator.trans('flarum-akismet.forum.post.not_spam_button');
} }
} }
}); });
override(CommentPost.prototype, 'flagReason', function (original, flag) { override(CommentPost.prototype, 'flagReason', function (original, flag) {
if (flag.type() === 'akismet') { if (flag.type() === 'akismet') {
return 'Akismet flagged as Spam'; return app.translator.trans('flarum-akismet.forum.post.akismet_flagged_text');
} }
return original(flag); return original(flag);