Browse Source

feat:产品导入 语言包

igb 5 months ago
parent
commit
dd2ae1515d

+ 4 - 3
app/Distributor/Actions/Extensions/DistProductImportForm.php

@@ -8,8 +8,7 @@ use Dcat\Admin\Grid\BatchAction;
 
 class DistProductImportForm extends BatchAction
 {
-    protected $title = '倒入产品';
-
+    protected $title = 'import';
 
 
     public function render()
@@ -52,9 +51,11 @@ class DistProductImportForm extends BatchAction
 
     protected function getButtonHTML()
     {
+        $title = admin_trans('admin.import');
+
         return <<<HTML
         <button class="btn btn-danger">
-            <i class="feather"></i> {$this->title}
+            <i class="feather"></i> {$title}
         </button>
         HTML;
     }

+ 1 - 1
app/Distributor/Controllers/ImportProductController.php

@@ -25,7 +25,7 @@ class ImportProductController extends AdminController
     {
         return $content
             ->header('倒入产品')
-            ->description('<span style="color: red; font-weight: bold;">Select products to import.</span>')
+            ->description('<span style="color: ; font-weight: bold;">'.admin_trans_label('select_products_to_import').'</span>')
             ->breadcrumb(['text'=>'列表','url'=>''])
             ->body($this->grid());
     }

+ 1 - 1
lang/en/admin.php

@@ -231,5 +231,5 @@ return [
     'product_parameter'=>'Product Parameter',
     'video_category'=>'Video Category',
     'video_list'=>'Video List',
-    'dist_product_import'
+    'import'=>'Import Products',
 ];

+ 1 - 0
lang/en/global.php

@@ -8,6 +8,7 @@ return [
         'order_tips' => 'Enter a number. The higher the number, the higher the ranking.',
         'cover_image' => 'Cover Image',
         'video_url' => 'Video Url',
+        'select_products_to_import' => 'Select products to import.',
     ],
     'options' => [
         //

+ 1 - 0
lang/zh_CN/admin.php

@@ -236,5 +236,6 @@ return [
     'product'  => '产品',
     'video'  => '视频',
     'dist_product_import'=>'产品导入',
+    'import'                => '导入产品',
 
 ];

+ 1 - 0
lang/zh_CN/global.php

@@ -61,6 +61,7 @@ return [
         "No" => "否",
         'cover_image' => '封面图片',
         'video_url' => '视频URL地址',
+        'select_products_to_import' => '选择产品后倒入.',
     ],
     'options' => [
         //