mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 17:47:30 +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',
|
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') })
|
||||||
)];
|
)];
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user