@foreach ($languages as $language)
@@ -263,21 +262,21 @@
-
+
-
+
@{{lang.name}}
@@ -285,8 +284,8 @@
- 保存
- 取消
+ {{ __('common.save') }}
+ {{ __('common.cancel') }}
diff --git a/resources/beike/admin/views/pages/products/index.blade.php b/resources/beike/admin/views/pages/products/index.blade.php
index bea3aa88..e0c71b8f 100644
--- a/resources/beike/admin/views/pages/products/index.blade.php
+++ b/resources/beike/admin/views/pages/products/index.blade.php
@@ -122,13 +122,16 @@
|
- @{{ item.name || '无名称' }}
+ @{{ stringLengthInte(item.name, 90) }}
|
@{{ item.price_formatted }} |
@{{ item.created_at }} |
@{{ item.position }} |
@if ($type != 'trashed')
- @{{ item.active ? '上架' : '下架' }} |
+
+ {{ __('common.enable') }}
+ {{ __('common.disable') }}
+ |
@endif
diff --git a/resources/lang/en/admin/brand.php b/resources/lang/en/admin/brand.php
index 6172c009..d168a502 100644
--- a/resources/lang/en/admin/brand.php
+++ b/resources/lang/en/admin/brand.php
@@ -10,6 +10,8 @@
*/
return [
+ 'index' => 'Brand',
+
'brands_index' => 'Index',
'brands_create' => 'Create',
'brands_show' => 'Detail',
diff --git a/resources/lang/en/admin/category.php b/resources/lang/en/admin/category.php
index a5043deb..69d63b1b 100644
--- a/resources/lang/en/admin/category.php
+++ b/resources/lang/en/admin/category.php
@@ -10,6 +10,8 @@
*/
return [
+ 'index' => 'Category',
+
'categories_index' => 'Index',
'categories_create' => 'Create',
'categories_show' => 'Detail',
diff --git a/resources/lang/en/admin/product.php b/resources/lang/en/admin/product.php
index 3a19f1be..0166478e 100644
--- a/resources/lang/en/admin/product.php
+++ b/resources/lang/en/admin/product.php
@@ -22,4 +22,19 @@ return [
'batch_delete' => 'Batch Delete',
'batch_active' => 'Batch Active',
'batch_inactive' => 'Batch Inactive',
+
+ 'basic_information' => 'basic information',
+ 'product_details' => 'Product details',
+ 'stocks' => 'goods inventory',
+ 'model' => 'model',
+ 'price' => 'price',
+ 'origin_price' => 'original price',
+ 'cost_price' => 'cost price',
+ 'quantity' => 'quantity',
+ 'enable_multi_spec' => 'Enable multi-spec',
+ 'image_help' => 'The first picture will be used as the main picture of the product, and multiple pictures can be uploaded at the same time, and the position of multiple pictures can be adjusted at will',
+ 'add_variable' => 'Add Specs',
+ 'add_variable_value' => 'Add Specification Value',
+ 'add_variable_image' => 'Add Spec Image',
+ 'default_main_product' => 'Default main product',
];
diff --git a/resources/lang/en/admin/tax_class.php b/resources/lang/en/admin/tax_class.php
index afd8ebc9..f44ba35f 100644
--- a/resources/lang/en/admin/tax_class.php
+++ b/resources/lang/en/admin/tax_class.php
@@ -10,6 +10,7 @@
*/
return [
+ 'index' => 'Tax',
'rule' => 'Rule',
'based_on' => 'Based',
'priority' => 'Priority',
diff --git a/resources/lang/en/common.php b/resources/lang/en/common.php
index 0a776b67..4e923b6a 100644
--- a/resources/lang/en/common.php
+++ b/resources/lang/en/common.php
@@ -13,6 +13,7 @@ return [
'error_required' => 'Please fill out the :name', // 这个有用别删了,:name 是一个变量
'error_required_name' => 'Please fill in your name',
'error_required_email' => 'Please enter your email',
+ 'error_input_required' => 'Input box cannot be empty',
'unauthenticated' => 'Please login first',
'success' => 'Success',
'no_data' => 'No data~',
@@ -53,6 +54,9 @@ return [
'confirm_delete' => 'You sure you want to delete it?',
'text_hint' => 'Hint',
'restore' => 'Restore',
+ 'name' => 'Name',
+ 'image' => 'Image',
+ 'data' => 'Data',
'id' => 'ID',
'created_at' => 'Created At',
diff --git a/resources/lang/zh_cn/admin/brand.php b/resources/lang/zh_cn/admin/brand.php
index e7818330..2e5b3b5d 100644
--- a/resources/lang/zh_cn/admin/brand.php
+++ b/resources/lang/zh_cn/admin/brand.php
@@ -10,6 +10,8 @@
*/
return [
+ 'index' => '品牌',
+
'brands_index' => '品牌列表',
'brands_create' => '创建品牌',
'brands_show' => '品牌详情',
diff --git a/resources/lang/zh_cn/admin/category.php b/resources/lang/zh_cn/admin/category.php
index 376ca4ed..d4280c53 100644
--- a/resources/lang/zh_cn/admin/category.php
+++ b/resources/lang/zh_cn/admin/category.php
@@ -10,6 +10,8 @@
*/
return [
+ 'index' => '分类',
+
'categories_index' => '分类列表',
'categories_create' => '创建分类',
'categories_show' => '分类详情',
diff --git a/resources/lang/zh_cn/admin/product.php b/resources/lang/zh_cn/admin/product.php
index fe95da14..839d15d8 100644
--- a/resources/lang/zh_cn/admin/product.php
+++ b/resources/lang/zh_cn/admin/product.php
@@ -23,4 +23,19 @@ return [
'batch_delete' => '批量删除',
'batch_active' => '批量上架',
'batch_inactive' => '批量下架',
+
+ 'basic_information' => '基础信息',
+ 'product_details' => '商品详情',
+ 'stocks' => '商品库存',
+ 'model' => '型号',
+ 'price' => '价格',
+ 'origin_price' => '原价',
+ 'cost_price' => '成本价',
+ 'quantity' => '数量',
+ 'enable_multi_spec' => '启用多规格',
+ 'image_help' => '第一张图片将作为商品主图,支持同时上传多张图片,多张图片之间可随意调整位置',
+ 'add_variable' => '添加规格',
+ 'add_variable_value' => '添加规格值',
+ 'add_variable_image' => '添加规格图片',
+ 'default_main_product' => '默认主商品',
];
diff --git a/resources/lang/zh_cn/admin/tax_class.php b/resources/lang/zh_cn/admin/tax_class.php
index 56801adf..f24caa5b 100644
--- a/resources/lang/zh_cn/admin/tax_class.php
+++ b/resources/lang/zh_cn/admin/tax_class.php
@@ -10,6 +10,7 @@
*/
return [
+ 'index' => '税类',
'rule' => '规则',
'based_on' => '基于',
'priority' => '优先级',
diff --git a/resources/lang/zh_cn/common.php b/resources/lang/zh_cn/common.php
index 1c99909b..4320a86a 100644
--- a/resources/lang/zh_cn/common.php
+++ b/resources/lang/zh_cn/common.php
@@ -12,6 +12,7 @@ return [
'error_required' => '请填写 :name', // 这个有用别删了,:name 是一个变量
'error_required_name' => '请填写姓名',
'error_required_email' => '请填写邮箱',
+ 'error_input_required' => '输入框不能为空',
'unauthenticated' => '请先登录',
'success' => '成功',
'no_data' => '暂无数据~',
@@ -52,6 +53,9 @@ return [
'confirm_delete' => '确定要删除吗?',
'text_hint' => '提示',
'restore' => '恢复',
+ 'name' => '名称',
+ 'image' => '图片',
+ 'data' => '数据',
'id' => 'ID',
'created_at' => '创建时间',
|