translation

This commit is contained in:
2026-03-06 02:31:40 +08:00
parent 70c4966aad
commit 8704434c36
29 changed files with 113 additions and 20 deletions
+2 -2
View File
@@ -63,10 +63,10 @@ class Language extends Command
return 0; return 0;
} }
function write2file($data=[]){ function write2file($data=[]){
$langs = ['zh','en']; $langs = ['zh-Hans','en'];
foreach($data as $fn=>$arr){ foreach($data as $fn=>$arr){
foreach($langs as $lang){ 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'); $_common_arr = require($lang_path.'common.php');
$_arr = []; $_arr = [];
if(file_exists($lang_path.$fn)){ if(file_exists($lang_path.$fn)){
+4
View File
@@ -18,4 +18,8 @@ return array (
'Incoret param' => 'Incoret param', 'Incoret param' => 'Incoret param',
'Trade password must be 6 characters' => 'Trade password must be 6 characters', 'Trade password must be 6 characters' => 'Trade password must be 6 characters',
'SMS sent successfully' => 'SMS sent successfully', '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',
); );
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
@@ -0,0 +1,3 @@
<?php
return array (
);
+4
View File
@@ -0,0 +1,4 @@
<?php
return array (
'参数错误' => '参数错误',
);
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
+7
View File
@@ -0,0 +1,7 @@
<?php
return array (
'Role does not exist' => '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',
);
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
+1
View File
@@ -1,3 +1,4 @@
<?php <?php
return array ( return array (
'Article does not exist' => 'Article does not exist',
); );
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
@@ -0,0 +1,7 @@
<?php
return array (
'Incorrect title' => 'Incorrect title',
'Incorrect amount' => 'Incorrect amount',
'Incorrect quantity' => 'Incorrect quantity',
'Insufficient balance' => 'Insufficient balance',
);
+23 -18
View File
@@ -1,20 +1,25 @@
<?php <?php
return array( return array (
"Account is incorrect" => "账号不正确", 'Account is incorrect' => '账号不正确',
'Email is incorrect' => '邮箱地址不正确', 'Email is incorrect' => '邮箱地址不正确',
'Mobile is incorrect' => '手机号不正确', 'Mobile is incorrect' => '手机号不正确',
'Invalid trade password' => '交易密码无效', 'Invalid trade password' => '交易密码无效',
'Invalid invite code' => '无效邀请码', 'Invalid invite code' => '无效邀请码',
'Sign up successful' => '注册成功', 'Sign up successful' => '注册成功',
'Invalid username or password' => '无效的用户名或密码', 'Invalid username or password' => '无效的用户名或密码',
'Password must be 6 to 30 characters' => '密码长度为6 ~ 30个字符', 'Password must be 6 to 30 characters' => '密码长度为6 ~ 30个字符',
'Trade password must be 6 characters' => '交易密码长度为6个字符', 'Trade password must be 6 characters' => '交易密码长度为6个字符',
'User not found' => '未找到用户', 'User not found' => '未找到用户',
'Reset password successful' => '重置密码成功', 'Reset password successful' => '重置密码成功',
'Reset Trade password successful' => '重置交易密码成功', 'Reset Trade password successful' => '重置交易密码成功',
'Only one verification code can be sent within %second% seconds' => '在%秒%秒内只能发送一个验证码', 'Only one verification code can be sent within %second% seconds' => '在%秒%秒内只能发送一个验证码',
'Email sent successfully' => '邮件发送成功', 'Email sent successfully' => '邮件发送成功',
'Mt email code' => 'Mt email code', 'Mt email code' => 'Mt email code',
'错误的邀请码' => '错误的邀请码', '错误的邀请码' => '错误的邀请码',
'Incoret param' => 'Incoret param', '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',
); );
@@ -0,0 +1,3 @@
<?php
return array (
);
@@ -0,0 +1,3 @@
<?php
return array (
);
@@ -0,0 +1,3 @@
<?php
return array (
);
@@ -4,4 +4,6 @@ return array (
'Gift is incorrect' => 'Gift is incorrect', 'Gift is incorrect' => 'Gift is incorrect',
'Denomination is incorrect' => 'Denomination is incorrect', 'Denomination is incorrect' => 'Denomination is incorrect',
'Insufficient balance' => 'Insufficient balance', 'Insufficient balance' => 'Insufficient balance',
'Quantity is incorrect' => 'Quantity is incorrect',
'Gift stock is insufficient' => 'Gift stock is insufficient',
); );
@@ -0,0 +1,4 @@
<?php
return array (
'参数错误' => '参数错误',
);
@@ -0,0 +1,3 @@
<?php
return array (
);
@@ -6,4 +6,6 @@ return array (
'Out of stock product' => '产品缺货', 'Out of stock product' => '产品缺货',
'Insufficient balance' => '余额不足', 'Insufficient balance' => '余额不足',
'You can only purchase %max_quantity% copies' => '你只能购买%max_quantity%份', 'You can only purchase %max_quantity% copies' => '你只能购买%max_quantity%份',
'Quantity is incorrect' => 'Quantity is incorrect',
'微量包每个用户只能购买一个' => '微量包每个用户只能购买一个',
); );
@@ -8,4 +8,5 @@ return array (
'exist' => '已存在', 'exist' => '已存在',
'You have reached the limit of uncompleted orders ( %max% ). Please complete the existing orders before trying to create another one.' => '订单已达上限,请完成订单或15分钟后再试', '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%', 'Minimum recharge of %num%' => '最低充值额 %num%',
'Order not exsit' => 'Order not exsit',
); );
@@ -9,4 +9,5 @@ return array (
'日期格式错误' => '日期格式错误', '日期格式错误' => '日期格式错误',
'补签日期不能大于今天' => '补签日期不能大于今天', '补签日期不能大于今天' => '补签日期不能大于今天',
'该日已签到' => '该日已签到', '该日已签到' => '该日已签到',
'Please complete real-name verification first' => 'Please complete real-name verification first',
); );
@@ -6,4 +6,9 @@ return array (
'Invalid user' => 'Invalid user', 'Invalid user' => 'Invalid user',
'Access denied' => 'Access denied', 'Access denied' => 'Access denied',
'It cannot be lower than the user\\\'s current level' => 'It cannot be lower than the user\\\'s current level', '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',
); );
@@ -0,0 +1,7 @@
<?php
return array (
'Role does not exist' => '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',
);
@@ -5,4 +5,7 @@ return array (
'The system is under maintenance, please wait...' => '系统正在维护中,请稍等…', 'The system is under maintenance, please wait...' => '系统正在维护中,请稍等…',
'User is incorrect' => '用户名不正确', 'User is incorrect' => '用户名不正确',
'Trade successful' => '交易成功', 'Trade successful' => '交易成功',
'Incoret param' => 'Incoret param',
'You have verified' => 'You have verified',
'ID card already exists' => 'ID card already exists',
); );
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
+3
View File
@@ -0,0 +1,3 @@
<?php
return array (
);
+1
View File
@@ -1,3 +1,4 @@
<?php <?php
return array ( return array (
'Article does not exist' => 'Article does not exist',
); );
@@ -0,0 +1,3 @@
<?php
return array (
);