zhenjiang.dou пре 8 година
родитељ
комит
23e145d4f0

+ 1 - 2
js/common.js

@@ -1,9 +1,8 @@
-
 jQuery.i18n.properties({
     name: 'lang',
     path: './locales/',
     mode: 'both',
-    // language:'zh_CN',
+    // language: 'zh_CN',
     checkAvailableLanguages: true,
     async: true,
     callback: function () {

+ 15 - 4
locales/lang.properties

@@ -1,13 +1,24 @@
-# This line is ignored by the plugin
-
-Home = Home
-tos = Terms of service
 home = Home
 production = Product
 contact = Contact
 contact_us = Contact us
 login = Login
 signup = Signup
+username = 用户名
+input_username = 请输入用户名
+password = 密码
+input_password = 请输入密码
+email = 电子邮箱地址
+input_email = 请输入电子邮箱地址
+site_category = 网站类型
+Personal = Personal
+Business = Business
+Hobby = Hobby
+Forum = Forum
+Adult = Adult
+dating = dating
+software_download = 软件/下载
+choose_from_below = 下拉选择
 legal_information = Legal Information
 privacy_policy = Privacy Policy
 tos = Terms of service

+ 0 - 0
locales/lang_en.properties → locales/lang_en_GB.properties


+ 13 - 0
locales/lang_en_US.properties

@@ -0,0 +1,13 @@
+Home = Home
+tos = Terms of service
+home = Home
+production = Product
+contact = Contact
+contact_us = Contact us
+login = Login
+signup = Signup
+legal_information = Legal Information
+privacy_policy = Privacy Policy
+tos = Terms of service
+cancellation_refund = Cancellation & Refund
+payment_methods = Payment Methods & Information

+ 11 - 0
locales/lang_ko_KR.properties

@@ -0,0 +1,11 @@
+home = 홈 페이지
+production = 생산
+contact = 접촉
+contact_us = 연락
+login = 로그인
+signup = 가입과
+legal_information = 법률 정보
+privacy_policy = 개인 정보 보호 정책
+tos = 이용 약관
+cancellation_refund = 취소 및 환불
+payment_methods = 지불 방법

+ 21 - 0
locales/lang_zh_CN.properties

@@ -4,6 +4,27 @@ contact = 联系
 contact_us = 联系我们
 login = 登录
 signup = 注册
+username = 用户名
+input_username = 请输入用户名
+password = 密码
+input_password = 请输入密码
+email = 电子邮箱地址
+input_email = 请输入电子邮箱地址
+site_category = 网站类型
+personal = 个人
+business = 商业
+hobby = 爱好
+forum = 论坛
+adult = 成人
+dating = 约会
+software_download = 软件/下载
+choose_from_below = 下拉选择
+site_language = 网站语言
+english = 英文
+non_english = 非英文
+security_code = 验证码
+input_security_code = 输入验证码
+input_security_code_above = 请输入上面图中验证码
 legal_information = 法律信息
 privacy_policy = 隐私政策
 tos = 服务条款

+ 32 - 0
locales/lang_zh_TW.properties

@@ -0,0 +1,32 @@
+home = 主頁
+production = 產品
+contact = 聯繫
+contact_us = 聯繫我們
+login = 登錄
+signup = 註冊
+username = 用戶名
+input_username = 請輸入用戶名
+password = 密碼
+input_password = 請輸入密碼
+email = 電子郵箱地址
+input_email = 請輸入電子郵箱地址
+site_category = 網站類型
+personal = 個人
+business = 商業
+hobby = 愛好
+forum = 論壇
+adult = 成人
+dating = 約會
+software_download = 軟件/下載
+choose_from_below = 下拉選擇
+site_language = 網站語言
+english = 英文
+non_english = 非英文
+security_code = 驗證碼
+input_security_code = 輸入驗證碼
+input_security_code_above = 請輸入上面圖中驗證碼
+legal_information = 法律信息
+privacy_policy = 隱私政策
+tos = 服務條款
+cancellation_refund = 取消與退款
+payment_methods = 支付方式

+ 2 - 4
locales/languages.json

@@ -1,11 +1,9 @@
 {
     "languages": [
-        "en",
         "zh_CN",
         "zh_TW",
+        "en_US",
         "en_GB",
-        "es_ES",
-        "pt_BR",
-        "sv_SE"
+        "ko_KR"
     ]
 }

+ 25 - 25
signup1.php

@@ -6,12 +6,12 @@
 <html lang="en">
 <head>
     <meta charset="utf-8">
-    <title><?=$domain?></title>
+    <title><?=$title?></title>
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1">
     <meta name="description" content="<?=$description?>">
     <meta name="author" content="<?=$author?>">
-    <link rel="icon" href="favicon.ico">
+    <link rel="icon" href="favicon.ico?_=<?=$static_release?>">
     <link href="//ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
     <link href="./css/style.css?_=<?=$static_release?>" rel="stylesheet"><!--[if lt IE 9]>
     <script src="./js/ie8-responsive-file-warning.js"></script><![endif]-->
@@ -30,64 +30,64 @@
     </div>
     <form class="form-horizontal" role="form" method=post action="https://order.<?=$domain?>/register.php">
         <div class="form-group">
-            <label for="inputUsername" class="col-sm-4 control-label">Username</label>
+            <label for="inputUsername" class="col-sm-4 control-label" data-i18n="username">Username</label>
             <div class="col-sm-5">
-            <input type="text" name="username" class="form-control" id="inputUsername" placeholder="Username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; }?>">
+            <input type="text" name="username" class="form-control" id="inputUsername" placeholder="Username" data-i18n="input_username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; }?>">
             </div>
         </div>
         <div class="form-group">
-            <label for="inputPassword" class="col-sm-4 control-label">Password</label>
+            <label for="inputPassword" class="col-sm-4 control-label" data-i18n="password">Password</label>
             <div class="col-sm-5">
-            <input type="password" name="password" class="form-control" id="inputPassword" placeholder="Password">
+            <input type="password" name="password" class="form-control" id="inputPassword" placeholder="Password" data-i18n="input_password">
             </div>
         </div>
         <div class="form-group">
-            <label for="inputEmail" class="col-sm-4 control-label">Email Address</label>
+            <label for="inputEmail" class="col-sm-4 control-label" data-i18n="email">Email Address</label>
             <div class="col-sm-5">
-            <input type="email" name="email" class="form-control" id="inputEmail" placeholder="Email Address" value="<?php if (isset($_GET['email'])) { echo $_GET['email']; }?>">
+            <input type="email" name="email" class="form-control" id="inputEmail" placeholder="Email Address" data-i18n="input_email" value="<?php if (isset($_GET['email'])) { echo $_GET['email']; }?>">
             </div>
         </div>
         <div class="form-group">
-            <label for="inputCategory" class="col-sm-4 control-label">Site Category</label>
+            <label for="inputCategory" class="col-sm-4 control-label" data-i18n="site_category">Site Category</label>
             <div class="col-sm-5">
                 <select class="form-control" name="website_category" id="inputCategory">
-                    <option>Choose from Below</option>
-                    <option>Personal</option>
-                    <option>Business</option>
-                    <option>Hobby</option>
-                    <option>Forum</option>
-                    <option>Adult</option>
-                    <option>Dating</option>
-                    <option>Software / Download</option>
+                    <option data-i18n="choose_from_below">Choose from Below</option>
+                    <option data-i18n="personal">Personal</option>
+                    <option data-i18n="business">Business</option>
+                    <option data-i18n="hobby">Hobby</option>
+                    <option data-i18n="forum">Forum</option>
+                    <option data-i18n="adult">Adult</option>
+                    <option data-i18n="dating">Dating</option>
+                    <option data-i18n="software_download">Software / Download</option>
                 </select>
             </div>
         </div>
         <div class="form-group">
-            <label for="inputLanguage" class="col-sm-4 control-label">Site Language</label>
+            <label for="inputLanguage" class="col-sm-4 control-label" data-i18n="site_language">Site Language</label>
             <div class="col-sm-5">
                 <select class="form-control" name="website_language" id="inputLanguage">
-                    <option>Choose from Below</option>
-                    <option>English</option>
-                    <option>Non-English</option>
+                    <option data-i18n="choose_from_below">Choose from Below</option>
+                    <option data-i18n="english">English</option>
+                    <option data-i18n="non_english">Non-English</option>
                 </select>
             </div>
         </div>
         <div class="form-group">
-            <label for="inputID" class="col-sm-4 control-label">Security Code</label>
+            <label for="inputID" class="col-sm-4 control-label" data-i18n="security_code">Security Code</label>
             <div class="col-sm-5">
             <img width="90px" height="25px" src="https://order.<?=$domain?>/image.php?id=<?=$security_id?>">
             <input type="hidden" name="id" class="form-control" id="inputID" placeholder="ID" value="<?=$security_id?>">
             </div>
         </div>
         <div class="form-group">
-            <label for="inputSecurityCode" class="col-sm-4 control-label">Enter Security Code</label>
+            <label for="inputSecurityCode" class="col-sm-4 control-label" data-i18n="input_security_code">Enter Security Code</label>
             <div class="col-sm-5">
-            <input type="text" name="number" class="form-control" id="inputSecurityCode" placeholder="Security Code">
+            <input type="text" name="number" class="form-control" id="inputSecurityCode" placeholder="Input Above Security Code" data-i18n="input_security_code_above">
             </div>
         </div>
         <div class="form-group">
             <div class="col-sm-offset-4 col-sm-6">
-            <button type="submit" name="submit" class="btn btn-default">Register</button>
+            <button type="submit" name="submit" class="btn btn-default" data-i18n="signup">Register</button>
             </div>
         </div>
     </form>