Skip to content

Commit c6d8743

Browse files
Merge remote-tracking branch '31231/MTWO-5' into marcomprs
2 parents c1f3552 + afa0d8a commit c6d8743

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

app/code/Magento/SalesRule/Model/Rule/Condition/Product.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\SalesRule\Model\Rule\Condition;
77

@@ -23,7 +23,7 @@ protected function _addSpecialAttributes(array &$attributes)
2323
$attributes['quote_item_price'] = __('Price in cart');
2424
$attributes['quote_item_row_total'] = __('Row total in cart');
2525

26-
$attributes['parent::category_ids'] = __('Category (Parent only)');
26+
$attributes['parent::category_ids'] = __('Category (Parent Only)');
2727
$attributes['children::category_ids'] = __('Category (Children Only)');
2828
}
2929

@@ -72,8 +72,8 @@ public function loadAttributeOptions()
7272
}
7373
$frontLabel = $attribute->getFrontendLabel();
7474
$attributes[$attribute->getAttributeCode()] = $frontLabel;
75-
$attributes['parent::' . $attribute->getAttributeCode()] = $frontLabel . __('(Parent Only)');
76-
$attributes['children::' . $attribute->getAttributeCode()] = $frontLabel . __('(Children Only)');
75+
$attributes['parent::' . $attribute->getAttributeCode()] = __('%1 (Parent Only)', $frontLabel);
76+
$attributes['children::' . $attribute->getAttributeCode()] = __('%1 (Children Only)', $frontLabel);
7777
}
7878

7979
$this->_addSpecialAttributes($attributes);

app/code/Magento/SalesRule/i18n/en_US.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,7 @@ Apply,Apply
174174
"Code Quantity Limit","Code Quantity Limit"
175175
"For better performance max value allowed is 250,000. Set 0 to disable it.","For better performance max value allowed is 250,000. Set 0 to disable it."
176176
"coupon exceeds usage limit.","coupon exceeds usage limit."
177+
"Category (Parent Only)","Category (Parent Only)"
178+
"Category (Children Only)","Category (Children Only)"
179+
"%1 (Parent Only)","%1 (Parent Only)"
180+
"%1 (Children Only)","%1 (Children Only)"

0 commit comments

Comments
 (0)