Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c071e788
authored
May 31, 2018
by
Zen-PC\Zen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zen : update language
parent
7c9408b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
12 deletions
+32
-12
www/src/Locale/th_TH/default.po
+20
-0
www/src/Template/Profiles/index.ctp
+12
-12
No files found.
www/src/Locale/th_TH/default.po
View file @
c071e788
...
@@ -51,6 +51,22 @@ msgstr "หญิง"
...
@@ -51,6 +51,22 @@ msgstr "หญิง"
msgid "blood group"
msgid "blood group"
msgstr "กรุ๊ปเลือด"
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
#: View/Profiles/index:122
msgid "mobile"
msgid "mobile"
msgstr "หมายเลขโทรศัพท์(มือถือ)"
msgstr "หมายเลขโทรศัพท์(มือถือ)"
...
@@ -75,6 +91,10 @@ msgstr "จังหวัด"
...
@@ -75,6 +91,10 @@ msgstr "จังหวัด"
msgid "SAVE"
msgid "SAVE"
msgstr "บันทึก"
msgstr "บันทึก"
#: View/Profiles/index:199
msgid "Show QR Code to get permission"
msgstr "แสดงคิวอาร์โค้ดเพื่อรับสิทธิ์"
#: View/Profiles/index:226
#: View/Profiles/index:226
msgid "This email is already in the system."
msgid "This email is already in the system."
msgstr "อีเมลนี้มีอยู่ในระบบอยู่แล้ว"
msgstr "อีเมลนี้มีอยู่ในระบบอยู่แล้ว"
...
...
www/src/Template/Profiles/index.ctp
View file @
c071e788
...
@@ -196,7 +196,7 @@
...
@@ -196,7 +196,7 @@
</div>
</div>
<div>
<div>
<div class="qrcode-profile"><br>
<div class="qrcode-profile"><br>
<?php echo __('
แสดง QR Code เพื่อรับสิทธิ์
');?>
<?php echo __('
Show QR Code to get permission
');?>
</div>
</div>
<img src="/img/core/img/connect-card-back.png" class="img-responsive" id="img-upload" alt="Profile picture">
<img src="/img/core/img/connect-card-back.png" class="img-responsive" id="img-upload" alt="Profile picture">
<div class="qrcode-name">
<div class="qrcode-name">
...
@@ -223,7 +223,7 @@
...
@@ -223,7 +223,7 @@
// console.log(data);
// console.log(data);
data = jQuery.parseJSON(data);
data = jQuery.parseJSON(data);
if(data['chk'] == 'false'){
if(data['chk'] == 'false'){
alert(
"This email is already in the system."
);
alert(
<?php echo __('This email is already in the system.') ?>
);
return false;
return false;
}
}
});
});
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
var elem = document.getElementById('moblieNo').value;
var elem = document.getElementById('moblieNo').value;
// console.log(elem);
// console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert(
"only numbers"
);
alert(
<?php echo __('only numbers') ?>
);
return false;
return false;
}
}
})
})
...
@@ -241,41 +241,41 @@
...
@@ -241,41 +241,41 @@
function validateForm() {
function validateForm() {
var firstname_th = document.getElementById("firstname_th").value;
var firstname_th = document.getElementById("firstname_th").value;
if (firstname_th == null || firstname_th == "") {
if (firstname_th == null || firstname_th == "") {
alert(
"Please enter your firstname."
);
alert(
<?php echo __('Please enter your firstname.') ?>
);
return false;
return false;
}
}
var lastname_th = document.getElementById("lastname_th").value;
var lastname_th = document.getElementById("lastname_th").value;
if (lastname_th == null || lastname_th == "") {
if (lastname_th == null || lastname_th == "") {
alert(
"Please enter your lastname."
);
alert(
<?php echo __('Please enter your lastname.') ?>
);
return false;
return false;
}
}
var birthdate = document.getElementById("datepicker").value;
var birthdate = document.getElementById("datepicker").value;
if (birthdate == null || birthdate == "") {
if (birthdate == null || birthdate == "") {
alert(
"Please enter your birthdate."
);
alert(
<?php echo __('Please enter your birthdate.') ?>
);
return false;
return false;
}
}
var moblieNo = document.getElementById("moblieNo").value;
var moblieNo = document.getElementById("moblieNo").value;
if (moblieNo == null || moblieNo == "") {
if (moblieNo == null || moblieNo == "") {
alert(
"Please enter your mobile."
);
alert(
<?php echo __('Please enter your mobile.') ?>
);
return false;
return false;
}
}
if(document.getElementById("moblieNo").value.length != 10)
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;
return false;
}
}
var email = document.getElementById("email").value;
var email = document.getElementById("email").value;
if (email == null || email == "") {
if (email == null || email == "") {
alert(
"Please enter your email address."
);
alert(
<?php echo __('Please enter your email address.') ?>
);
return false;
return false;
}
}
var email = $("#email").val();
var email = $("#email").val();
if (/(.+)@(.+){2,}\.(.+){2,}/.test(email)) { } else {
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;
return false;
}
}
// var email = document.getElementById("email").value;
// var email = document.getElementById("email").value;
...
@@ -288,12 +288,12 @@
...
@@ -288,12 +288,12 @@
// });
// });
var master_country_id = document.getElementById("master_country_id").value;
var master_country_id = document.getElementById("master_country_id").value;
if (master_country_id == null || master_country_id == "") {
if (master_country_id == null || master_country_id == "") {
alert(
"Please specify country"
);
alert(
<?php echo __('Please specify country') ?>
);
return false;
return false;
}
}
var master_province_id = document.getElementById("master_province_id").value;
var master_province_id = document.getElementById("master_province_id").value;
if (master_province_id == null || master_province_id == "") {
if (master_province_id == null || master_province_id == "") {
alert(
"Please specify province"
);
alert(
<?php echo __('Please specify province') ?>
);
return false;
return false;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment