mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 14:14:59 +08:00
Commit latest dist files
See https://github.com/flarum/core/issues/727#issuecomment-172384020
This commit is contained in:
parent
e087b04e6b
commit
d9eb2b8e02
|
@ -23,7 +23,7 @@ System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/compo
|
|||
}, {
|
||||
key: 'title',
|
||||
value: function title() {
|
||||
return 'Akismet Settings';
|
||||
return app.translator.trans('flarum-akismet.admin.akismet_settings.title');
|
||||
}
|
||||
}, {
|
||||
key: 'form',
|
||||
|
@ -34,7 +34,7 @@ System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/compo
|
|||
m(
|
||||
'label',
|
||||
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') })
|
||||
)];
|
||||
|
|
|
@ -23,14 +23,14 @@ System.register('flarum/akismet/main', ['flarum/extend', 'flarum/app', 'flarum/u
|
|||
if (flags && flags.some(function (flag) {
|
||||
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) {
|
||||
if (flag.type() === 'akismet') {
|
||||
return 'Akismet flagged as Spam';
|
||||
return app.translator.trans('flarum-akismet.forum.post.akismet_flagged_text');
|
||||
}
|
||||
|
||||
return original(flag);
|
||||
|
|
Loading…
Reference in New Issue
Block a user