diff --git a/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js b/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js
index de53074e3..f5e95f925 100644
--- a/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js
+++ b/common/js/plugins/ckeditor/ckeditor/plugins/rx_paste/plugin.js
@@ -102,7 +102,7 @@ CKEDITOR.plugins.add('rx_paste', {
* Display an error message.
*/
const displayError = function(type, message) {
- alert(window.xe.msg_file_upload_error + ' (Type ' + type + ")\n" + message);
+ alert(Rhymix.lang('msg_file_upload_error') + ' (Type ' + type + ")\n" + message);
};
}
diff --git a/common/js/plugins/jquery.fileupload/js/main.js b/common/js/plugins/jquery.fileupload/js/main.js
index cb52a126c..6d7be5095 100644
--- a/common/js/plugins/jquery.fileupload/js/main.js
+++ b/common/js/plugins/jquery.fileupload/js/main.js
@@ -106,7 +106,7 @@
$.each(item.files, function(index, file) {
if(data.settings.maxFileSize > 0 && data.settings.maxFileSize < file.size) {
dfd.reject();
- alert(window.xe.msg_exceeds_limit_size);
+ alert(window.xe.lang.msg_exceeds_limit_size);
return false;
}
dfd.resolve();
@@ -133,19 +133,19 @@
if (res.result.message) {
alert(res.result.message);
} else {
- alert(window.xe.msg_file_upload_error + " (Type 1)");
+ alert(window.xe.lang.msg_file_upload_error + " (Type 1)");
}
return chunkStatus = false;
}
} else {
- alert(window.xe.msg_file_upload_error + " (Type 2)");
+ alert(window.xe.lang.msg_file_upload_error + " (Type 2)");
return chunkStatus = false;
}
},
chunkfail: function(e, res) {
lastUploadTime = Date.now();
if (chunkStatus) {
- alert(window.xe.msg_file_upload_error + " (Type 3)" + "
\n" + res.errorThrown + "
\n" + res.textStatus);
+ alert(window.xe.lang.msg_file_upload_error + " (Type 3)" + "
\n" + res.errorThrown + "
\n" + res.textStatus);
return chunkStatus = false;
}
},
@@ -162,14 +162,14 @@
var result = res.response().result;
var temp_code = '';
if (!result) {
- alert(window.xe.msg_file_upload_error + " (Type 4)");
+ alert(window.xe.lang.msg_file_upload_error + " (Type 4)");
return false;
}
if (!jQuery.isPlainObject(result)) {
result = jQuery.parseJSON(result);
}
if (!result) {
- alert(window.xe.msg_file_upload_error + " (Type 5)" + "
\n" + res.response().result);
+ alert(window.xe.lang.msg_file_upload_error + " (Type 5)" + "
\n" + res.response().result);
return false;
}
@@ -215,7 +215,7 @@
return false;
} else {
$container.data('editorStatus', null);
- alert(window.xe.msg_file_upload_error + " (Type 6)" + "
\n" + res.response().result);
+ alert(window.xe.lang.msg_file_upload_error + " (Type 6)" + "
\n" + res.response().result);
return false;
}
},
@@ -229,7 +229,7 @@
}
}, 1000);
if (chunkStatus) {
- alert(window.xe.msg_file_upload_error + " (Type 7)" + "
\n" + res.errorThrown + "
\n" + res.textStatus);
+ alert(window.xe.lang.msg_file_upload_error + " (Type 7)" + "
\n" + res.errorThrown + "
\n" + res.textStatus);
return false;
}
},
diff --git a/modules/admin/tpl/_header.html b/modules/admin/tpl/_header.html
index 5abe09c9f..729ca60e1 100644
--- a/modules/admin/tpl/_header.html
+++ b/modules/admin/tpl/_header.html
@@ -4,10 +4,10 @@
{@ Context::addMetaTag("viewport", "width=device-width, user-scalable=yes")}
diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js
index f3152ef88..7881bcdf5 100644
--- a/modules/admin/tpl/js/admin.js
+++ b/modules/admin/tpl/js/admin.js
@@ -977,7 +977,7 @@ jQuery(function($){
tmpCount++;
// add html
- var $btn = $('' + xe.cmd_find + '');
+ var $btn = $('' + xe.lang.cmd_find + '');
var $displayInput = $('');
$this.after($btn).after(' ').after($displayInput).hide();
$btn.xeModuleSearch();
@@ -1050,10 +1050,10 @@ jQuery(function($){
$.xeMsgBox = {
htOptions : {}
};
- //xe.cmd_cancel = "{$lang->cmd_cancel}";
- //xe.cmd_confirm = "{$lang->cmd_confirm}";
+ //xe.lang.cmd_cancel = "{$lang->cmd_cancel}";
+ //xe.lang.cmd_confirm = "{$lang->cmd_confirm}";
var $msgBox = $.xeMsgBox.$msgBox = $("").addClass("x_modal _common x").hide().css('z-index', 9999);
- $msgBox.html('