Commit c071e788 by Zen-PC\Zen

Zen : update language

parent 7c9408b0
......@@ -51,6 +51,22 @@ msgstr "หญิง"
msgid "blood group"
msgstr "กรุ๊ปเลือด"
#: View/Profiles/index:106
msgid "A"
msgstr "เอ"
#: View/Profiles/index:109
msgid "B"
msgstr "บี"
#: View/Profiles/index:112
msgid "AB"
msgstr "เอบี"
#: View/Profiles/index:115
msgid "O"
msgstr "โอ"
#: View/Profiles/index:122
msgid "mobile"
msgstr "หมายเลขโทรศัพท์(มือถือ)"
......@@ -75,6 +91,10 @@ msgstr "จังหวัด"
msgid "SAVE"
msgstr "บันทึก"
#: View/Profiles/index:199
msgid "Show QR Code to get permission"
msgstr "แสดงคิวอาร์โค้ดเพื่อรับสิทธิ์"
#: View/Profiles/index:226
msgid "This email is already in the system."
msgstr "อีเมลนี้มีอยู่ในระบบอยู่แล้ว"
......
......@@ -196,7 +196,7 @@
</div>
<div>
<div class="qrcode-profile"><br>
<?php echo __('แสดง QR Code เพื่อรับสิทธิ์');?>
<?php echo __('Show QR Code to get permission');?>
</div>
<img src="/img/core/img/connect-card-back.png" class="img-responsive" id="img-upload" alt="Profile picture">
<div class="qrcode-name">
......@@ -223,7 +223,7 @@
// console.log(data);
data = jQuery.parseJSON(data);
if(data['chk'] == 'false'){
alert("This email is already in the system.");
alert(<?php echo __('This email is already in the system.') ?>);
return false;
}
});
......@@ -232,7 +232,7 @@
var elem = document.getElementById('moblieNo').value;
// console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert("only numbers");
alert(<?php echo __('only numbers') ?>);
return false;
}
})
......@@ -241,41 +241,41 @@
function validateForm() {
var firstname_th = document.getElementById("firstname_th").value;
if (firstname_th == null || firstname_th == "") {
alert("Please enter your firstname.");
alert(<?php echo __('Please enter your firstname.') ?>);
return false;
}
var lastname_th = document.getElementById("lastname_th").value;
if (lastname_th == null || lastname_th == "") {
alert("Please enter your lastname.");
alert(<?php echo __('Please enter your lastname.') ?>);
return false;
}
var birthdate = document.getElementById("datepicker").value;
if (birthdate == null || birthdate == "") {
alert("Please enter your birthdate.");
alert(<?php echo __('Please enter your birthdate.') ?>);
return false;
}
var moblieNo = document.getElementById("moblieNo").value;
if (moblieNo == null || moblieNo == "") {
alert("Please enter your mobile.");
alert(<?php echo __('Please enter your mobile.') ?>);
return false;
}
if(document.getElementById("moblieNo").value.length != 10)
{
alert('Please enter a 10 digit mobile number.');
alert(<?php echo __('Please enter a 10 digit mobile number.') ?>);
return false;
}
var email = document.getElementById("email").value;
if (email == null || email == "") {
alert("Please enter your email address.");
alert(<?php echo __('Please enter your email address.') ?>);
return false;
}
var email = $("#email").val();
if (/(.+)@(.+){2,}\.(.+){2,}/.test(email)) { } else {
alert("Email address format wrong, Please enter the correct number.");
alert(<?php echo __('Email address format wrong, Please enter the correct number.') ?>);
return false;
}
// var email = document.getElementById("email").value;
......@@ -288,12 +288,12 @@
// });
var master_country_id = document.getElementById("master_country_id").value;
if (master_country_id == null || master_country_id == "") {
alert("Please specify country");
alert(<?php echo __('Please specify country') ?>);
return false;
}
var master_province_id = document.getElementById("master_province_id").value;
if (master_province_id == null || master_province_id == "") {
alert("Please specify province");
alert(<?php echo __('Please specify province') ?>);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment