diff --git a/app/code/Magento/SalesRule/Model/Rule/Condition/Product.php b/app/code/Magento/SalesRule/Model/Rule/Condition/Product.php index f047ee9d1e48a..bd18c665d98e4 100644 --- a/app/code/Magento/SalesRule/Model/Rule/Condition/Product.php +++ b/app/code/Magento/SalesRule/Model/Rule/Condition/Product.php @@ -1,7 +1,7 @@ getFrontendLabel(); $attributes[$attribute->getAttributeCode()] = $frontLabel; - $attributes['parent::' . $attribute->getAttributeCode()] = $frontLabel . __('(Parent Only)'); - $attributes['children::' . $attribute->getAttributeCode()] = $frontLabel . __('(Children Only)'); + $attributes['parent::' . $attribute->getAttributeCode()] = __('%1 (Parent Only)', $frontLabel); + $attributes['children::' . $attribute->getAttributeCode()] = __('%1 (Children Only)', $frontLabel); } $this->_addSpecialAttributes($attributes); diff --git a/app/code/Magento/SalesRule/i18n/en_US.csv b/app/code/Magento/SalesRule/i18n/en_US.csv index 62cfd3fd5e727..7f7b12a0b4fc0 100755 --- a/app/code/Magento/SalesRule/i18n/en_US.csv +++ b/app/code/Magento/SalesRule/i18n/en_US.csv @@ -174,3 +174,7 @@ Apply,Apply "Code Quantity Limit","Code Quantity Limit" "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." "coupon exceeds usage limit.","coupon exceeds usage limit." +"Category (Parent Only)","Category (Parent Only)" +"Category (Children Only)","Category (Children Only)" +"%1 (Parent Only)","%1 (Parent Only)" +"%1 (Children Only)","%1 (Children Only)"