Fixed translations for coupon
This commit is contained in:
committed by
Julien Chanseaume
parent
c1c47ced52
commit
fa134bb9a3
@@ -121,8 +121,7 @@ class CartContainsCategories extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Cart contains categories condition',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -133,8 +132,7 @@ class CartContainsCategories extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The coupon applies if the cart contains at least one product of the selected categories',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -167,7 +165,7 @@ class CartContainsCategories extends ConditionAbstract
|
||||
'At least one of cart products categories is %op% <strong>%categories_list%</strong>', [
|
||||
'%categories_list%' => $catStrList,
|
||||
'%op%' => $i18nOperator
|
||||
], 'condition'
|
||||
]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
|
||||
@@ -113,8 +113,7 @@ class CartContainsProducts extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Cart contains specific products',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -125,8 +124,7 @@ class CartContainsProducts extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The coupon applies if the cart contains at least one product of the specified product list',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -159,7 +157,7 @@ class CartContainsProducts extends ConditionAbstract
|
||||
'Cart contains at least a product %op% <strong>%products_list%</strong>', [
|
||||
'%products_list%' => $prodStrList,
|
||||
'%op%' => $i18nOperator
|
||||
], 'condition'
|
||||
]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
|
||||
@@ -104,8 +104,7 @@ class ForSomeCustomers extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'For one ore more customers',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -116,8 +115,7 @@ class ForSomeCustomers extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The coupon applies to some customers only',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -150,7 +148,7 @@ class ForSomeCustomers extends ConditionAbstract
|
||||
'Customer is %op% <strong>%customer_list%</strong>', [
|
||||
'%customer_list%' => $custStrList,
|
||||
'%op%' => $i18nOperator
|
||||
], 'condition'
|
||||
]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
|
||||
@@ -50,8 +50,7 @@ class MatchBillingCountries extends AbstractMatchCountries
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Billing country',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -61,9 +60,8 @@ class MatchBillingCountries extends AbstractMatchCountries
|
||||
public function getToolTip()
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The coupon applies to the selected delivery countries',
|
||||
[],
|
||||
'condition'
|
||||
'The coupon applies to the selected billing countries',
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -75,14 +73,14 @@ class MatchBillingCountries extends AbstractMatchCountries
|
||||
'Only if order billing country is %op% <strong>%countries_list%</strong>', [
|
||||
'%countries_list%' => $cntryStrList,
|
||||
'%op%' => $i18nOperator
|
||||
], 'condition'
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
protected function getFormLabel()
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Billing coutry is', [], 'condition'
|
||||
'Billing country is', []
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,8 +50,7 @@ class MatchDeliveryCountries extends AbstractMatchCountries
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Delivery country',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,8 +61,7 @@ class MatchDeliveryCountries extends AbstractMatchCountries
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The coupon applies to the selected delivery countries',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -75,14 +73,14 @@ class MatchDeliveryCountries extends AbstractMatchCountries
|
||||
'Only if order shipping country is %op% <strong>%countries_list%</strong>', [
|
||||
'%countries_list%' => $cntryStrList,
|
||||
'%op%' => $i18nOperator
|
||||
], 'condition'
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
protected function getFormLabel()
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Delivery coutry is', [], 'condition'
|
||||
'Delivery country is', []
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,8 +68,7 @@ class MatchForEveryone extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Unconditional usage',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -80,8 +79,7 @@ class MatchForEveryone extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'This condition is always true',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -94,8 +92,7 @@ class MatchForEveryone extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'Unconditionnal usage',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
|
||||
@@ -120,8 +120,7 @@ class MatchForTotalAmount extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Cart total amount',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -132,8 +131,7 @@ class MatchForTotalAmount extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'Check the total Cart amount in the given currency',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -155,8 +153,7 @@ class MatchForTotalAmount extends ConditionAbstract
|
||||
'%operator%' => $i18nOperator,
|
||||
'%amount%' => $this->values[self::CART_TOTAL],
|
||||
'%currency%' => $this->values[self::CART_CURRENCY]
|
||||
),
|
||||
'condition'
|
||||
)
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -199,7 +196,7 @@ class MatchForTotalAmount extends ConditionAbstract
|
||||
{
|
||||
$labelPrice = $this->facade
|
||||
->getTranslator()
|
||||
->trans('Cart total amount is', [], 'condition');
|
||||
->trans('Cart total amount is', []);
|
||||
|
||||
$html = $this->drawBackOfficeBaseInputsText($labelPrice, self::CART_TOTAL);
|
||||
|
||||
|
||||
@@ -103,8 +103,7 @@ class MatchForXArticles extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Cart item count',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -115,8 +114,7 @@ class MatchForXArticles extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The cart item count should match the condition',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -136,8 +134,7 @@ class MatchForXArticles extends ConditionAbstract
|
||||
array(
|
||||
'%operator%' => $i18nOperator,
|
||||
'%quantity%' => $this->values[self::CART_QUANTITY]
|
||||
),
|
||||
'condition'
|
||||
)
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
@@ -164,7 +161,7 @@ class MatchForXArticles extends ConditionAbstract
|
||||
{
|
||||
$labelQuantity = $this->facade
|
||||
->getTranslator()
|
||||
->trans('Cart item count is', [], 'condition');
|
||||
->trans('Cart item count is');
|
||||
|
||||
$html = $this->drawBackOfficeBaseInputsText($labelQuantity, self::CART_QUANTITY);
|
||||
|
||||
|
||||
@@ -103,8 +103,7 @@ class StartDate extends ConditionAbstract
|
||||
{
|
||||
return $this->translator->trans(
|
||||
'Start date',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -115,8 +114,7 @@ class StartDate extends ConditionAbstract
|
||||
{
|
||||
$toolTip = $this->translator->trans(
|
||||
'The coupon is valid after a given date',
|
||||
[],
|
||||
'condition'
|
||||
[]
|
||||
);
|
||||
|
||||
return $toolTip;
|
||||
|
||||
Reference in New Issue
Block a user