[Bugfix][MD310][bug-view-1251][login] Probability of error message when changing login password
Change-Id: Ie4fc60be71201c613b133ebb2c1ccd763e508d58
diff --git a/lynq/CPE_COMMON/ap/app/zte_webui/js/com.js b/lynq/CPE_COMMON/ap/app/zte_webui/js/com.js
index c9ba2c0..7047730 100755
--- a/lynq/CPE_COMMON/ap/app/zte_webui/js/com.js
+++ b/lynq/CPE_COMMON/ap/app/zte_webui/js/com.js
@@ -6486,6 +6486,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6603,6 +6627,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6611,7 +6641,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/CPE_TELKOMSEL/ap/app/zte_webui/js/com.js b/lynq/CPE_TELKOMSEL/ap/app/zte_webui/js/com.js
index 242872e..4845ebc 100755
--- a/lynq/CPE_TELKOMSEL/ap/app/zte_webui/js/com.js
+++ b/lynq/CPE_TELKOMSEL/ap/app/zte_webui/js/com.js
@@ -6535,6 +6535,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6652,6 +6676,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6660,7 +6690,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/MD310/ap/app/zte_webui/js/com.js b/lynq/MD310/ap/app/zte_webui/js/com.js
index 608b424..fb439bb 100755
--- a/lynq/MD310/ap/app/zte_webui/js/com.js
+++ b/lynq/MD310/ap/app/zte_webui/js/com.js
@@ -6491,6 +6491,32 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
+
// �������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6608,6 +6634,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6616,7 +6648,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/MD310EU/ap/app/zte_webui/js/com.js b/lynq/MD310EU/ap/app/zte_webui/js/com.js
index 608b424..fb439bb 100755
--- a/lynq/MD310EU/ap/app/zte_webui/js/com.js
+++ b/lynq/MD310EU/ap/app/zte_webui/js/com.js
@@ -6491,6 +6491,32 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
+
// �������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6608,6 +6634,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6616,7 +6648,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R305/ap/app/zte_webui/js/com.js b/lynq/R305/ap/app/zte_webui/js/com.js
index 2257a20..e76c72f 100755
--- a/lynq/R305/ap/app/zte_webui/js/com.js
+++ b/lynq/R305/ap/app/zte_webui/js/com.js
@@ -6420,6 +6420,32 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
+
// �������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6537,6 +6563,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6545,7 +6577,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R306/ap/app/zte_webui/js/com.js b/lynq/R306/ap/app/zte_webui/js/com.js
index f76cc85..779d93f 100755
--- a/lynq/R306/ap/app/zte_webui/js/com.js
+++ b/lynq/R306/ap/app/zte_webui/js/com.js
@@ -6465,6 +6465,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6582,6 +6606,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6590,7 +6620,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R306BR/ap/app/zte_webui/js/com.js b/lynq/R306BR/ap/app/zte_webui/js/com.js
index 467110a..5c5d8c2 100755
--- a/lynq/R306BR/ap/app/zte_webui/js/com.js
+++ b/lynq/R306BR/ap/app/zte_webui/js/com.js
@@ -7425,6 +7425,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -7542,6 +7566,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -7550,7 +7580,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R306_MTN/ap/app/zte_webui/js/com.js b/lynq/R306_MTN/ap/app/zte_webui/js/com.js
index c9ba2c0..7047730 100755
--- a/lynq/R306_MTN/ap/app/zte_webui/js/com.js
+++ b/lynq/R306_MTN/ap/app/zte_webui/js/com.js
@@ -6486,6 +6486,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6603,6 +6627,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6611,7 +6641,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R307/ap/app/zte_webui/js/com.js b/lynq/R307/ap/app/zte_webui/js/com.js
index ff8596e..49e1371 100755
--- a/lynq/R307/ap/app/zte_webui/js/com.js
+++ b/lynq/R307/ap/app/zte_webui/js/com.js
@@ -6456,6 +6456,32 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
+
// �������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6573,6 +6599,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6581,7 +6613,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R307L/COMMON/ap/app/zte_webui/js/com.js b/lynq/R307L/COMMON/ap/app/zte_webui/js/com.js
index 73e9c0d..250f336 100755
--- a/lynq/R307L/COMMON/ap/app/zte_webui/js/com.js
+++ b/lynq/R307L/COMMON/ap/app/zte_webui/js/com.js
@@ -6456,6 +6456,32 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
+
// �������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6573,6 +6599,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6581,7 +6613,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/R307L/ap/app/zte_webui/js/com.js b/lynq/R307L/ap/app/zte_webui/js/com.js
index e486c75..e71609a 100755
--- a/lynq/R307L/ap/app/zte_webui/js/com.js
+++ b/lynq/R307L/ap/app/zte_webui/js/com.js
@@ -1,4 +1,5 @@
+
define("service","underscore jquery set CryptoJS".split(" "), function (_, $, config, CryptoJS) {
function addTimerSomething(querys, cb) {
if (_.isArray(querys)) {
@@ -6457,6 +6458,32 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
+
// �������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6574,6 +6601,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6582,7 +6615,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/S300/ap/app/zte_webui/js/com.js b/lynq/S300/ap/app/zte_webui/js/com.js
index d89cc64..f5c3f94 100755
--- a/lynq/S300/ap/app/zte_webui/js/com.js
+++ b/lynq/S300/ap/app/zte_webui/js/com.js
@@ -6486,6 +6486,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6603,6 +6627,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6611,7 +6641,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/S300AI/ap/app/zte_webui/js/com.js b/lynq/S300AI/ap/app/zte_webui/js/com.js
index ffe803e..48992aa 100755
--- a/lynq/S300AI/ap/app/zte_webui/js/com.js
+++ b/lynq/S300AI/ap/app/zte_webui/js/com.js
@@ -7425,6 +7425,30 @@
init:init
}
});
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -7542,6 +7566,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -7550,7 +7580,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/S300_AIC/ap/app/zte_webui/js/com.js b/lynq/S300_AIC/ap/app/zte_webui/js/com.js
index d89cc64..f4ea92e 100755
--- a/lynq/S300_AIC/ap/app/zte_webui/js/com.js
+++ b/lynq/S300_AIC/ap/app/zte_webui/js/com.js
@@ -6486,6 +6486,31 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6603,6 +6628,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6611,7 +6642,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}
diff --git a/lynq/S300_COMMON/ap/app/zte_webui/js/com.js b/lynq/S300_COMMON/ap/app/zte_webui/js/com.js
index d89cc64..f4ea92e 100755
--- a/lynq/S300_COMMON/ap/app/zte_webui/js/com.js
+++ b/lynq/S300_COMMON/ap/app/zte_webui/js/com.js
@@ -6486,6 +6486,31 @@
init:init
}
});
+
+const errorMessages = {
+ "en": {
+ txtCurrent: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtNew: {
+ manage_info_check: "Please enter a valid password."
+ },
+ txtConfirm: {
+ equalTo: "The new password and the confirmed password do not match or contain illegal characters."
+ }
+ },
+ "zh": {
+ txtCurrent: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtNew: {
+ manage_info_check: "请输入有效的密码"
+ },
+ txtConfirm: {
+ equalTo: "新密码和确认密码不匹配或者包含非法字符"
+ }
+ }
+};
// ������� �
define("adm_management","jquery knockout set service underscore CryptoJS".split(" "),
@@ -6603,6 +6628,12 @@
var fwVm = new manageViewModel();
ko.applyBindings(fwVm, container[0]);
+ const userLanguage = navigator.language || navigator.userLanguage;
+ // Extract language code,"en", "zh"
+ const langCode = userLanguage.split('-')[0];
+ // If there is no matching language, English is used by default
+ const messages = errorMessages[langCode] || errorMessages["en"];
+
$('#frmPassword').validate({
submitHandler:function () {
fwVm.changeValue();
@@ -6611,7 +6642,8 @@
txtCurrent:"manage_info_check",
txtNew:"manage_info_check",
txtConfirm:{ equalTo:"#txtNew"}
- }
+ },
+ messages: messages
});
}