From a9994a314311efa974511b1e54073e81f70f2519 Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Fri, 19 Jul 2019 10:49:19 +0530 Subject: [PATCH] Translation issue fixes for cart rule create and edit forms --- .../Admin/src/Resources/lang/en/app.php | 18 ++++++++- .../promotions/cart-rule/create.blade.php | 38 +++++++++--------- .../views/promotions/cart-rule/edit.blade.php | 40 +++++++++++-------- 3 files changed, 59 insertions(+), 37 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php index 2a3fb1937..fd5e6b7a5 100755 --- a/packages/Webkul/Admin/src/Resources/lang/en/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -824,6 +824,17 @@ return [ 'cannot-activate-catalog-rule' => 'Cannot activate catalog rule', 'catalog-rule-already-activated' => 'Catalog rule is already activated', 'catalog-rule-activated' => 'Catalog rule is activated', + 'select-attribute' => 'Select :attribute', + 'enter-attribute' => 'Enter :attribute', + 'add-condition' => 'Add Condition', + 'cart-properties' => 'Cart Properties', + 'yes' => 'Yes', + 'no' => 'No', + 'note' => 'Note', + 'rule-name' => 'Enter Rule Name', + 'rule-desc' => 'Enter Rule Description', + 'convert-x-note' => 'If this section is left empty, then rule will get applied to all the products in the cart.', + 'add-attr-condition' => 'Add Attribute Condition', 'general-info' => [ 'sku-like' => 'SKU Like', 'on-shipping' => 'If applied on shipping', @@ -865,7 +876,12 @@ return [ 'is-guest' => 'For Guests', 'disc_qty' => 'Max. Quantity Allowed To Be Discounted', 'test-mode' => 'Choose how to test conditions', - 'labels' => 'Labels' + 'labels' => 'Labels', + 'prefix' => 'Prefix', + 'suffix' => 'Suffix', + 'code' => 'Code', + 'global-label' => 'Global Label', + 'label' => 'Label' ], 'status' => [ diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php index 2b121259d..def9eaee2 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/create.blade.php @@ -78,7 +78,7 @@ - + @foreach(app('Webkul\Core\Repositories\ChannelRepository')->all() as $channel) @endforeach @@ -104,7 +104,7 @@ @@ -169,7 +169,7 @@ --}} @@ -189,7 +189,7 @@
@@ -200,7 +200,7 @@
- +
@@ -229,7 +229,7 @@
- Add Condition + {{ __('admin::app.promotion.add-condition') }} @@ -313,17 +313,17 @@ {{--
- + - + @{{ errors.first('prefix') }}
- + - + @{{ errors.first('suffix') }}
@@ -331,9 +331,9 @@
- + - + @{{ errors.first('code') }}
@@ -357,7 +357,7 @@
@@ -385,16 +385,16 @@
- Add Attribute Condition + {{ __('admin::app.promotion.add-attr-condition') }}
- + - + @{{ errors.first('label') }}
@@ -405,7 +405,7 @@
- + @{{ errors.first('label') }}
diff --git a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/edit.blade.php b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/edit.blade.php index 003416415..b9abf4378 100644 --- a/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/edit.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/promotions/cart-rule/edit.blade.php @@ -80,7 +80,7 @@ - + @foreach(app('Webkul\Core\Repositories\ChannelRepository')->all() as $channel) @endforeach @@ -106,9 +106,9 @@ @{{ errors.first('status') }} @@ -195,7 +195,7 @@
@@ -206,7 +206,7 @@
- +
- +
@@ -228,21 +228,21 @@ - +
- Add Condition + {{ __('admin::app.promotion.add-condition') }}
- + @@ -336,7 +336,7 @@ {{--
--}}
- + @@ -350,6 +350,12 @@
+ + {{ __('admin::app.promotion.note') }}: + + {{ __('admin::app.promotion.convert-x-note') }} + +
@@ -362,7 +368,7 @@
@@ -422,8 +428,8 @@ data () { return { - name: 'Name of rule', - description: 'Enter Some Description', + name: '{{ __('admin::app.promotion.rule-name') }}', + description: '{{ __('admin::app.promotion.rule-desc') }}', channels: [], customer_groups: [], ends_till: null,