Commit 9f4755c9 by 宁成龙

完善翻译

parent 3299b342
...@@ -45,29 +45,32 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable ...@@ -45,29 +45,32 @@ class CreateUser extends \Dcat\Admin\Support\LazyRenderable
$form->row(function (Form\Row $form) { $form->row(function (Form\Row $form) {
$form->array('user_address_list', function ($table) { $form->array('user_address_list', function ($table) {
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->text('first_name')->required(); $table->width(3)->text('first_name')->label(trans("user-address.fields.first_name"))->required();
$table->width(3)->text('last_name')->required(); $table->width(3)->text('last_name')->label(trans("user-address.fields.last_name"))->required();
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->select('address_type')->options(admin_trans('user-address.options.address_type')) $table->width(3)->select('address_type')->label(trans("user-address.fields.address_type"))->options
(admin_trans('user-address.options.address_type'))
->required(); ->required();
$table->width(3)->text('company_name'); $table->width(3)->text('company_name')->label(trans("user-address.fields.company_name"));
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->email('email')->required(); $table->width(3)->email('email')->label(trans("user-address.fields.email"))->required();
$table->width(3)->text('phone')->required(); $table->width(3)->text('phone')->label(trans("user-address.fields.phone"))->required();
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->select('country')->options(Country::getCountryMap())->required(); $table->width(3)->select('country')->label(trans("user-address.fields.country"))->options
$table->width(3)->text('province'); (Country::getCountryMap())
$table->width(3)->text('city')->required(); ->required();
$table->width(2)->text('post_code')->required(); $table->width(3)->text('province')->label(trans("user-address.fields.province"));
$table->width(3)->text('city')->label(trans("user-address.fields.city"))->required();
$table->width(2)->text('post_code')->label(trans("user-address.fields.post_code"))->required();
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(12)->textarea('detail_address')->required(); $table->width(12)->textarea('detail_address')->label(trans("user-address.fields.detail_address"))->required();
}); });
$table->row(function (Form\Row $table) { $table->row(function (Form\Row $table) {
$table->width(3)->switch('is_default')->required(); $table->width(3)->switch('is_default')->label(trans("user-address.fields.is_default"))->required();
}); });
}); });
}); });
......
...@@ -11,18 +11,21 @@ return [ ...@@ -11,18 +11,21 @@ return [
'fields' => [ 'fields' => [
"address_id" => "用户用户地址ID", "address_id" => "用户用户地址ID",
"user_id" => "会员ID", "user_id" => "会员ID",
"address_type" => "地址类型;0:个人,1:公司", "address_type" => "地址类型",
"consignee" => "收货人/收货公司", "consignee" => "收货人",
"email" => "邮箱", "email" => "邮箱",
"post_code" => "邮政编码", "post_code" => "邮政编码",
"phone" => "手机/电话", "phone" => "手机",
"country" => "国家", "country" => "国家",
"province" => "省份", "province" => "省份",
"city" => "城市", "city" => "城市",
"detail_address" => "详细地址", "detail_address" => "详细地址",
"is_default" => "是否默认(1=是|0=否)", "is_default" => "是否默认",
"create_time" => "创建时间", "create_time" => "创建时间",
"update_time" => "修改时间", "update_time" => "修改时间",
"last_name" => "姓",
"first_name" => "名",
"company_name" => "公司名称",
], ],
'options' => [ 'options' => [
"address_type"=> [ "address_type"=> [
......
...@@ -8,25 +8,28 @@ return [ ...@@ -8,25 +8,28 @@ return [
'fields' => [ 'fields' => [
"address_id" => "用户用户地址ID", "address_id" => "用户用户地址ID",
"user_id" => "会员ID", "user_id" => "会员ID",
"address_type" => "地址类型;0:个人,1:公司", "address_type" => "地址类型",
"consignee" => "收货人/收货公司", "consignee" => "收货人",
"email" => "邮箱", "email" => "邮箱",
"post_code" => "邮政编码", "post_code" => "邮政编码",
"phone" => "手机/电话", "phone" => "手机",
"country" => "国家", "country" => "国家",
"province" => "省份", "province" => "省份",
"city" => "城市", "city" => "城市",
"detail_address" => "详细地址", "detail_address" => "详细地址",
"is_default" => "是否默认(1=是|0=否)", "is_default" => "是否默认",
"create_time" => "创建时间", "create_time" => "创建时间",
"update_time" => "修改时间", "update_time" => "修改时间",
"last_name" => "姓",
"first_name" => "名",
"company_name" => "公司名称",
], ],
'options' => [ 'options' => [
"address_type"=> [ "address_type" => [
"0" => "个人", "0" => "个人",
"1" => "公司", "1" => "公司",
], ],
"is_default"=> [ "is_default" => [
"1" => "是", "1" => "是",
"0" => "否", "0" => "否",
], ],
......
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