diff --git a/app/command/Language.php b/app/command/Language.php index a7813c7..00d5555 100755 --- a/app/command/Language.php +++ b/app/command/Language.php @@ -63,10 +63,10 @@ class Language extends Command return 0; } function write2file($data=[]){ - $langs = ['zh','en']; + $langs = ['zh-Hans','en']; foreach($data as $fn=>$arr){ foreach($langs as $lang){ - $lang_path = base_path().'/resource/translations/'.$lang.'/'; + $lang_path = base_path('/resource/translations/'.$lang.'/'); $_common_arr = require($lang_path.'common.php'); $_arr = []; if(file_exists($lang_path.$fn)){ diff --git a/resource/translations/en/api/common.php b/resource/translations/en/api/common.php index 534cd2e..49a97de 100755 --- a/resource/translations/en/api/common.php +++ b/resource/translations/en/api/common.php @@ -18,4 +18,8 @@ return array ( 'Incoret param' => 'Incoret param', 'Trade password must be 6 characters' => 'Trade password must be 6 characters', 'SMS sent successfully' => 'SMS sent successfully', + 'Unknown register way' => 'Unknown register way', + 'Username is incorrect' => 'Username is incorrect', + 'Password must be 6 to 32 characters' => 'Password must be 6 to 32 characters', + 'Trade password must be 6-32 characters' => 'Trade password must be 6-32 characters', ); \ No newline at end of file diff --git a/resource/translations/en/api/contact.php b/resource/translations/en/api/contact.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/en/api/contact.php @@ -0,0 +1,3 @@ + '参数错误', +); \ No newline at end of file diff --git a/resource/translations/en/api/message.php b/resource/translations/en/api/message.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/en/api/message.php @@ -0,0 +1,3 @@ + 'Role does not exist', + 'Your level is too high to purchase this character' => 'Your level is too high to purchase this character', + 'This character group is not allowed to be sold' => 'This character group is not allowed to be sold', + 'Insufficient balance' => 'Insufficient balance', +); \ No newline at end of file diff --git a/resource/translations/en/hook.php b/resource/translations/en/hook.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/en/hook.php @@ -0,0 +1,3 @@ + 'Article does not exist', ); \ No newline at end of file diff --git a/resource/translations/en/metrics.php b/resource/translations/en/metrics.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/en/metrics.php @@ -0,0 +1,3 @@ + 'Incorrect title', + 'Incorrect amount' => 'Incorrect amount', + 'Incorrect quantity' => 'Incorrect quantity', + 'Insufficient balance' => 'Insufficient balance', +); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/common.php b/resource/translations/zh-Hans/api/common.php index bda2a27..f7e2c81 100755 --- a/resource/translations/zh-Hans/api/common.php +++ b/resource/translations/zh-Hans/api/common.php @@ -1,20 +1,25 @@ "账号不正确", - 'Email is incorrect' => '邮箱地址不正确', - 'Mobile is incorrect' => '手机号不正确', - 'Invalid trade password' => '交易密码无效', - 'Invalid invite code' => '无效邀请码', - 'Sign up successful' => '注册成功', - 'Invalid username or password' => '无效的用户名或密码', - 'Password must be 6 to 30 characters' => '密码长度为6 ~ 30个字符', - 'Trade password must be 6 characters' => '交易密码长度为6个字符', - 'User not found' => '未找到用户', - 'Reset password successful' => '重置密码成功', - 'Reset Trade password successful' => '重置交易密码成功', - 'Only one verification code can be sent within %second% seconds' => '在%秒%秒内只能发送一个验证码', - 'Email sent successfully' => '邮件发送成功', - 'Mt email code' => 'Mt email code', - '错误的邀请码' => '错误的邀请码', - 'Incoret param' => 'Incoret param', +return array ( + 'Account is incorrect' => '账号不正确', + 'Email is incorrect' => '邮箱地址不正确', + 'Mobile is incorrect' => '手机号不正确', + 'Invalid trade password' => '交易密码无效', + 'Invalid invite code' => '无效邀请码', + 'Sign up successful' => '注册成功', + 'Invalid username or password' => '无效的用户名或密码', + 'Password must be 6 to 30 characters' => '密码长度为6 ~ 30个字符', + 'Trade password must be 6 characters' => '交易密码长度为6个字符', + 'User not found' => '未找到用户', + 'Reset password successful' => '重置密码成功', + 'Reset Trade password successful' => '重置交易密码成功', + 'Only one verification code can be sent within %second% seconds' => '在%秒%秒内只能发送一个验证码', + 'Email sent successfully' => '邮件发送成功', + 'Mt email code' => 'Mt email code', + '错误的邀请码' => '错误的邀请码', + 'Incoret param' => 'Incoret param', + 'Unknown register way' => 'Unknown register way', + 'Username is incorrect' => 'Username is incorrect', + 'Password must be 6 to 32 characters' => 'Password must be 6 to 32 characters', + 'Trade password must be 6-32 characters' => 'Trade password must be 6-32 characters', + 'SMS sent successfully' => 'SMS sent successfully', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/contact.php b/resource/translations/zh-Hans/api/contact.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/zh-Hans/api/contact.php @@ -0,0 +1,3 @@ + 'Gift is incorrect', 'Denomination is incorrect' => 'Denomination is incorrect', 'Insufficient balance' => 'Insufficient balance', + 'Quantity is incorrect' => 'Quantity is incorrect', + 'Gift stock is insufficient' => 'Gift stock is insufficient', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/group.php b/resource/translations/zh-Hans/api/group.php new file mode 100644 index 0000000..a2248ca --- /dev/null +++ b/resource/translations/zh-Hans/api/group.php @@ -0,0 +1,4 @@ + '参数错误', +); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/message.php b/resource/translations/zh-Hans/api/message.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/zh-Hans/api/message.php @@ -0,0 +1,3 @@ + '产品缺货', 'Insufficient balance' => '余额不足', 'You can only purchase %max_quantity% copies' => '你只能购买%max_quantity%份', + 'Quantity is incorrect' => 'Quantity is incorrect', + '微量包每个用户只能购买一个' => '微量包每个用户只能购买一个', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/recharge.php b/resource/translations/zh-Hans/api/recharge.php index 1139ea0..d7aabcd 100755 --- a/resource/translations/zh-Hans/api/recharge.php +++ b/resource/translations/zh-Hans/api/recharge.php @@ -8,4 +8,5 @@ return array ( 'exist' => '已存在', 'You have reached the limit of uncompleted orders ( %max% ). Please complete the existing orders before trying to create another one.' => '订单已达上限,请完成订单或15分钟后再试', 'Minimum recharge of %num%' => '最低充值额 %num%', + 'Order not exsit' => 'Order not exsit', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/signin.php b/resource/translations/zh-Hans/api/signin.php index f5ecb54..aa7ee10 100755 --- a/resource/translations/zh-Hans/api/signin.php +++ b/resource/translations/zh-Hans/api/signin.php @@ -9,4 +9,5 @@ return array ( '日期格式错误' => '日期格式错误', '补签日期不能大于今天' => '补签日期不能大于今天', '该日已签到' => '该日已签到', + 'Please complete real-name verification first' => 'Please complete real-name verification first', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/team.php b/resource/translations/zh-Hans/api/team.php index c91b4c1..f2b0405 100755 --- a/resource/translations/zh-Hans/api/team.php +++ b/resource/translations/zh-Hans/api/team.php @@ -6,4 +6,9 @@ return array ( 'Invalid user' => 'Invalid user', 'Access denied' => 'Access denied', 'It cannot be lower than the user\\\'s current level' => 'It cannot be lower than the user\\\'s current level', + 'V1' => 'V1', + 'V2' => 'V2', + 'V3' => 'V3', + 'V4' => 'V4', + 'V5' => 'V5', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/thali.php b/resource/translations/zh-Hans/api/thali.php new file mode 100644 index 0000000..ec1587c --- /dev/null +++ b/resource/translations/zh-Hans/api/thali.php @@ -0,0 +1,7 @@ + 'Role does not exist', + 'Your level is too high to purchase this character' => 'Your level is too high to purchase this character', + 'This character group is not allowed to be sold' => 'This character group is not allowed to be sold', + 'Insufficient balance' => 'Insufficient balance', +); \ No newline at end of file diff --git a/resource/translations/zh-Hans/api/user.php b/resource/translations/zh-Hans/api/user.php index b435c15..28372f7 100755 --- a/resource/translations/zh-Hans/api/user.php +++ b/resource/translations/zh-Hans/api/user.php @@ -5,4 +5,7 @@ return array ( 'The system is under maintenance, please wait...' => '系统正在维护中,请稍等…', 'User is incorrect' => '用户名不正确', 'Trade successful' => '交易成功', + 'Incoret param' => 'Incoret param', + 'You have verified' => 'You have verified', + 'ID card already exists' => 'ID card already exists', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/git.php b/resource/translations/zh-Hans/git.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/zh-Hans/git.php @@ -0,0 +1,3 @@ + 'Article does not exist', ); \ No newline at end of file diff --git a/resource/translations/zh-Hans/metrics.php b/resource/translations/zh-Hans/metrics.php new file mode 100644 index 0000000..6cf866c --- /dev/null +++ b/resource/translations/zh-Hans/metrics.php @@ -0,0 +1,3 @@ +