v1.18.x
Barış Soner Uşaklı 7 years ago
parent 97c52f4ce3
commit 6940612688

@ -182,5 +182,6 @@
"cant-move-to-same-topic": "Can't move post to same topic!", "cant-move-to-same-topic": "Can't move post to same topic!",
"cannot-block-self": "You cannot block yourself!", "cannot-block-self": "You cannot block yourself!",
"cannot-block-privileged": "You cannot block administrators or global moderators" "cannot-block-privileged": "You cannot block administrators or global moderators",
"no-connection": "There seems to be a problem with your internet connection"
} }

@ -18,6 +18,7 @@ $(document).ready(function () {
// When ajaxify is migrated to a require.js module, then this can be merged into the "define" call // When ajaxify is migrated to a require.js module, then this can be merged into the "define" call
require(['translator', 'benchpress'], function (_translator, _Benchpress) { require(['translator', 'benchpress'], function (_translator, _Benchpress) {
translator = _translator; translator = _translator;
translator.translate('[[error:no-connection]]', app.inAdmin ? config.acpLang : config.userLang);
Benchpress = _Benchpress; Benchpress = _Benchpress;
}); });
@ -318,6 +319,8 @@ $(document).ready(function () {
error: function (data, textStatus) { error: function (data, textStatus) {
if (data.status === 0 && textStatus === 'error') { if (data.status === 0 && textStatus === 'error') {
data.status = 500; data.status = 500;
data.responseJSON = data.responseJSON || {};
data.responseJSON.error = '[[error:no-connection]]';
} }
callback({ callback({
data: data, data: data,

Loading…
Cancel
Save