${csrf_token()|n}
@@ -117,7 +117,7 @@
$('#loader-div').hide();
$('#login_submit').prop('disabled', false);
- alert('${tlang("Error: please, try again later")}');
+ alert('${_("Error: please, try again later")}');
},
}).done(function(data) {
@@ -132,19 +132,19 @@
else
{
- $('#username_form').get(0).setCustomValidity("${tlang('Error: username or password invalid')}");
- $('#password_form').get(0).setCustomValidity("${tlang('Error: username or password invalid')}");
+ $('#username_form').get(0).setCustomValidity("${_('Error: username or password invalid')}");
+ $('#password_form').get(0).setCustomValidity("${_('Error: username or password invalid')}");
console.log(JSON.stringify(data));
if(data.no_login) {
- $('#login_invalid').html("${tlang('Error: you try login excessive times, please wait some minutes for try again')}");
+ $('#login_invalid').html("${_('Error: you try login excessive times, please wait some minutes for try again')}");
}
else {
- $('#login_invalid').html("${tlang('Error: username or password invalid')}");
+ $('#login_invalid').html("${_('Error: username or password invalid')}");
}
diff --git a/paramecio/modules/admin2/templates/need_auth.phtml b/paramecio/modules/admin2/templates/need_auth.phtml
index 7819aaf..d9f6f8b 100644
--- a/paramecio/modules/admin2/templates/need_auth.phtml
+++ b/paramecio/modules/admin2/templates/need_auth.phtml
@@ -2,30 +2,30 @@
<%block name="content">
@@ -74,7 +74,7 @@
form.classList.add('was-validated');
alert(textStatus);
$('#code_submit').prop('disabled', false);
- $('#code_form').get(0).setCustomValidity("${tlang('Error, please try again later')}");
+ $('#code_form').get(0).setCustomValidity("${_('Error, please try again later')}");
}
}).done(function(data) {
@@ -100,22 +100,22 @@
if(data.hasOwnProperty('disable')) {
- //$('#code_error').html("${tlang('Error, your user is disabled, you need support of web administration')}");
- $('#code_form').get(0).setCustomValidity("${tlang('Error, your user is disabled, you need support of web administration')}");
+ //$('#code_error').html("${_('Error, your user is disabled, you need support of web administration')}");
+ $('#code_form').get(0).setCustomValidity("${_('Error, your user is disabled, you need support of web administration')}");
- $('#txt_error_code').html("${tlang('Error, your user is disabled, you need support of web administration')}");
+ $('#txt_error_code').html("${_('Error, your user is disabled, you need support of web administration')}");
} else {
- $('#code_form').get(0).setCustomValidity("${tlang('Error, wrong code')}");
- //$('#code_error').html("${tlang('Error, wrong code')}");
- $('#txt_error_code').html("${tlang('Error, wrong code')}");
+ $('#code_form').get(0).setCustomValidity("${_('Error, wrong code')}");
+ //$('#code_error').html("${_('Error, wrong code')}");
+ $('#txt_error_code').html("${_('Error, wrong code')}");
}
if(data.you_cannot_login) {
- //$('#code_error').html("${tlang('Error, excessive tries, wait some minutes for login again')}");
- $('#code_form').get(0).setCustomValidity("${tlang('Error, excessive tries, wait some minutes for login again')}");
- $('#txt_error_code').html("${tlang('Error, excessive tries, wait some minutes for login again')}");
+ //$('#code_error').html("${_('Error, excessive tries, wait some minutes for login again')}");
+ $('#code_form').get(0).setCustomValidity("${_('Error, excessive tries, wait some minutes for login again')}");
+ $('#txt_error_code').html("${_('Error, excessive tries, wait some minutes for login again')}");
}
@@ -170,17 +170,17 @@
if(data.hasOwnProperty('disable')) {
- $('#code_error').html("${tlang('Error, your user is disabled, you need support of web administration')}");
+ $('#code_error').html("${_('Error, your user is disabled, you need support of web administration')}");
} else {
- $('#code_error').html("${tlang('Error, wrong code')}");
+ $('#code_error').html("${_('Error, wrong code')}");
}
if(data.you_cannot_login) {
- $('#code_error').html("${tlang('Error, excessive tries, wait some minutes for login again')}");
+ $('#code_error').html("${_('Error, excessive tries, wait some minutes for login again')}");
}
diff --git a/paramecio/modules/admin2/templates/signup.phtml b/paramecio/modules/admin2/templates/signup.phtml
index 2434e78..a6105bf 100644
--- a/paramecio/modules/admin2/templates/signup.phtml
+++ b/paramecio/modules/admin2/templates/signup.phtml
@@ -2,39 +2,39 @@
<%block name="content">
@@ -49,7 +49,7 @@ $(document).ready( function () {
console.log('No match');
- $('#repeat_password_form').get(0).setCustomValidity("${tlang('Passwords doesn\'t match')}");
+ $('#repeat_password_form').get(0).setCustomValidity("${_('Passwords doesn\'t match')}");
}
else {
@@ -105,7 +105,7 @@ $(document).ready( function () {
$('#loader-div').hide();
$('#login_submit').prop('disabled', false);
- alert('${tlang("Error: please, try again later")}');
+ alert('${_("Error: please, try again later")}');
},
}).done(function(data) {