Fixed translations for coupon

This commit is contained in:
Julien Chanséaume
2014-07-21 12:26:24 +02:00
committed by Julien Chanseaume
parent c1c47ced52
commit fa134bb9a3
35 changed files with 87 additions and 107 deletions

View File

@@ -121,8 +121,7 @@ class CartContainsCategories extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'Cart contains categories condition', 'Cart contains categories condition',
[], []
'condition'
); );
} }
@@ -133,8 +132,7 @@ class CartContainsCategories extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The coupon applies if the cart contains at least one product of the selected categories', 'The coupon applies if the cart contains at least one product of the selected categories',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -167,7 +165,7 @@ class CartContainsCategories extends ConditionAbstract
'At least one of cart products categories is %op% <strong>%categories_list%</strong>', [ 'At least one of cart products categories is %op% <strong>%categories_list%</strong>', [
'%categories_list%' => $catStrList, '%categories_list%' => $catStrList,
'%op%' => $i18nOperator '%op%' => $i18nOperator
], 'condition' ]
); );
return $toolTip; return $toolTip;

View File

@@ -113,8 +113,7 @@ class CartContainsProducts extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'Cart contains specific products', 'Cart contains specific products',
[], []
'condition'
); );
} }
@@ -125,8 +124,7 @@ class CartContainsProducts extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The coupon applies if the cart contains at least one product of the specified product list', 'The coupon applies if the cart contains at least one product of the specified product list',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -159,7 +157,7 @@ class CartContainsProducts extends ConditionAbstract
'Cart contains at least a product %op% <strong>%products_list%</strong>', [ 'Cart contains at least a product %op% <strong>%products_list%</strong>', [
'%products_list%' => $prodStrList, '%products_list%' => $prodStrList,
'%op%' => $i18nOperator '%op%' => $i18nOperator
], 'condition' ]
); );
return $toolTip; return $toolTip;

View File

@@ -104,8 +104,7 @@ class ForSomeCustomers extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'For one ore more customers', 'For one ore more customers',
[], []
'condition'
); );
} }
@@ -116,8 +115,7 @@ class ForSomeCustomers extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The coupon applies to some customers only', 'The coupon applies to some customers only',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -150,7 +148,7 @@ class ForSomeCustomers extends ConditionAbstract
'Customer is %op% <strong>%customer_list%</strong>', [ 'Customer is %op% <strong>%customer_list%</strong>', [
'%customer_list%' => $custStrList, '%customer_list%' => $custStrList,
'%op%' => $i18nOperator '%op%' => $i18nOperator
], 'condition' ]
); );
return $toolTip; return $toolTip;

View File

@@ -50,8 +50,7 @@ class MatchBillingCountries extends AbstractMatchCountries
{ {
return $this->translator->trans( return $this->translator->trans(
'Billing country', 'Billing country',
[], []
'condition'
); );
} }
@@ -61,9 +60,8 @@ class MatchBillingCountries extends AbstractMatchCountries
public function getToolTip() public function getToolTip()
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The coupon applies to the selected delivery countries', 'The coupon applies to the selected billing countries',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -75,14 +73,14 @@ class MatchBillingCountries extends AbstractMatchCountries
'Only if order billing country is %op% <strong>%countries_list%</strong>', [ 'Only if order billing country is %op% <strong>%countries_list%</strong>', [
'%countries_list%' => $cntryStrList, '%countries_list%' => $cntryStrList,
'%op%' => $i18nOperator '%op%' => $i18nOperator
], 'condition' ]
); );
} }
protected function getFormLabel() protected function getFormLabel()
{ {
return $this->translator->trans( return $this->translator->trans(
'Billing coutry is', [], 'condition' 'Billing country is', []
); );
} }
} }

View File

@@ -50,8 +50,7 @@ class MatchDeliveryCountries extends AbstractMatchCountries
{ {
return $this->translator->trans( return $this->translator->trans(
'Delivery country', 'Delivery country',
[], []
'condition'
); );
} }
@@ -62,8 +61,7 @@ class MatchDeliveryCountries extends AbstractMatchCountries
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The coupon applies to the selected delivery countries', 'The coupon applies to the selected delivery countries',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -75,14 +73,14 @@ class MatchDeliveryCountries extends AbstractMatchCountries
'Only if order shipping country is %op% <strong>%countries_list%</strong>', [ 'Only if order shipping country is %op% <strong>%countries_list%</strong>', [
'%countries_list%' => $cntryStrList, '%countries_list%' => $cntryStrList,
'%op%' => $i18nOperator '%op%' => $i18nOperator
], 'condition' ]
); );
} }
protected function getFormLabel() protected function getFormLabel()
{ {
return $this->translator->trans( return $this->translator->trans(
'Delivery coutry is', [], 'condition' 'Delivery country is', []
); );
} }
} }

View File

@@ -68,8 +68,7 @@ class MatchForEveryone extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'Unconditional usage', 'Unconditional usage',
[], []
'condition'
); );
} }
@@ -80,8 +79,7 @@ class MatchForEveryone extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'This condition is always true', 'This condition is always true',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -94,8 +92,7 @@ class MatchForEveryone extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'Unconditionnal usage', 'Unconditionnal usage',
[], []
'condition'
); );
return $toolTip; return $toolTip;

View File

@@ -120,8 +120,7 @@ class MatchForTotalAmount extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'Cart total amount', 'Cart total amount',
[], []
'condition'
); );
} }
@@ -132,8 +131,7 @@ class MatchForTotalAmount extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'Check the total Cart amount in the given currency', 'Check the total Cart amount in the given currency',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -155,8 +153,7 @@ class MatchForTotalAmount extends ConditionAbstract
'%operator%' => $i18nOperator, '%operator%' => $i18nOperator,
'%amount%' => $this->values[self::CART_TOTAL], '%amount%' => $this->values[self::CART_TOTAL],
'%currency%' => $this->values[self::CART_CURRENCY] '%currency%' => $this->values[self::CART_CURRENCY]
), )
'condition'
); );
return $toolTip; return $toolTip;
@@ -199,7 +196,7 @@ class MatchForTotalAmount extends ConditionAbstract
{ {
$labelPrice = $this->facade $labelPrice = $this->facade
->getTranslator() ->getTranslator()
->trans('Cart total amount is', [], 'condition'); ->trans('Cart total amount is', []);
$html = $this->drawBackOfficeBaseInputsText($labelPrice, self::CART_TOTAL); $html = $this->drawBackOfficeBaseInputsText($labelPrice, self::CART_TOTAL);

View File

@@ -103,8 +103,7 @@ class MatchForXArticles extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'Cart item count', 'Cart item count',
[], []
'condition'
); );
} }
@@ -115,8 +114,7 @@ class MatchForXArticles extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The cart item count should match the condition', 'The cart item count should match the condition',
[], []
'condition'
); );
return $toolTip; return $toolTip;
@@ -136,8 +134,7 @@ class MatchForXArticles extends ConditionAbstract
array( array(
'%operator%' => $i18nOperator, '%operator%' => $i18nOperator,
'%quantity%' => $this->values[self::CART_QUANTITY] '%quantity%' => $this->values[self::CART_QUANTITY]
), )
'condition'
); );
return $toolTip; return $toolTip;
@@ -164,7 +161,7 @@ class MatchForXArticles extends ConditionAbstract
{ {
$labelQuantity = $this->facade $labelQuantity = $this->facade
->getTranslator() ->getTranslator()
->trans('Cart item count is', [], 'condition'); ->trans('Cart item count is');
$html = $this->drawBackOfficeBaseInputsText($labelQuantity, self::CART_QUANTITY); $html = $this->drawBackOfficeBaseInputsText($labelQuantity, self::CART_QUANTITY);

View File

@@ -103,8 +103,7 @@ class StartDate extends ConditionAbstract
{ {
return $this->translator->trans( return $this->translator->trans(
'Start date', 'Start date',
[], []
'condition'
); );
} }
@@ -115,8 +114,7 @@ class StartDate extends ConditionAbstract
{ {
$toolTip = $this->translator->trans( $toolTip = $this->translator->trans(
'The coupon is valid after a given date', 'The coupon is valid after a given date',
[], []
'condition'
); );
return $toolTip; return $toolTip;

View File

@@ -55,57 +55,49 @@ abstract class Operators
case self::INFERIOR: case self::INFERIOR:
$ret = $translator->trans( $ret = $translator->trans(
'Less than', 'Less than',
[], []
'condition'
); );
break; break;
case self::INFERIOR_OR_EQUAL: case self::INFERIOR_OR_EQUAL:
$ret = $translator->trans( $ret = $translator->trans(
'Less than or equals', 'Less than or equals',
[], []
'condition'
); );
break; break;
case self::EQUAL: case self::EQUAL:
$ret = $translator->trans( $ret = $translator->trans(
'Equal to', 'Equal to',
[], []
'condition'
); );
break; break;
case self::SUPERIOR_OR_EQUAL: case self::SUPERIOR_OR_EQUAL:
$ret = $translator->trans( $ret = $translator->trans(
'Greater than or equals', 'Greater than or equals',
[], []
'condition'
); );
break; break;
case self::SUPERIOR: case self::SUPERIOR:
$ret = $translator->trans( $ret = $translator->trans(
'Greater than', 'Greater than',
[], []
'condition'
); );
break; break;
case self::DIFFERENT: case self::DIFFERENT:
$ret = $translator->trans( $ret = $translator->trans(
'Not equal to', 'Not equal to',
[], []
'condition'
); );
break; break;
case self::IN: case self::IN:
$ret = $translator->trans( $ret = $translator->trans(
'In', 'In',
[], []
'condition'
); );
break; break;
case self::OUT: case self::OUT:
$ret = $translator->trans( $ret = $translator->trans(
'Not in', 'Not in',
[], []
'condition'
); );
break; break;
default: default:

View File

@@ -43,7 +43,7 @@ return array(
'Available shipping zones' => 'Available shipping zones', 'Available shipping zones' => 'Available shipping zones',
'Bad tax list JSON' => 'Bad tax list JSON', 'Bad tax list JSON' => 'Bad tax list JSON',
'Billing country' => 'Billing country', 'Billing country' => 'Billing country',
'Billing coutry is' => 'Le pays de facturation est', 'Billing country is' => 'Billing country is',
'Brand' => 'Brand', 'Brand' => 'Brand',
'Brand / Supplier' => 'Brand / Supplier', 'Brand / Supplier' => 'Brand / Supplier',
'Brand name' => 'Brand name', 'Brand name' => 'Brand name',
@@ -87,7 +87,7 @@ return array(
'Default product sale element' => 'Default product sale element', 'Default product sale element' => 'Default product sale element',
'Deleting %obj% for %id% with parent id %parentId%' => 'Deleting %obj% for %id% with parent id %parentId%', 'Deleting %obj% for %id% with parent id %parentId%' => 'Deleting %obj% for %id% with parent id %parentId%',
'Delivery country' => 'Delivery country', 'Delivery country' => 'Delivery country',
'Delivery coutry is' => 'Le pays de livraison est', 'Delivery country is' => 'Delivery country is',
'Delivery module ID not found' => 'Delivery module ID not found', 'Delivery module ID not found' => 'Delivery module ID not found',
'Detailed description' => 'Detailed description', 'Detailed description' => 'Detailed description',
'Disabled' => 'Disabled', 'Disabled' => 'Disabled',
@@ -302,12 +302,12 @@ return array(
'The coupon applies if the cart contains at least one product of the selected categories' => 'The coupon applies if the cart contains at least one product of the selected categories', 'The coupon applies if the cart contains at least one product of the selected categories' => 'The coupon applies if the cart contains at least one product of the selected categories',
'The coupon applies if the cart contains at least one product of the specified product list' => 'The coupon applies if the cart contains at least one product of the specified product list', 'The coupon applies if the cart contains at least one product of the specified product list' => 'The coupon applies if the cart contains at least one product of the specified product list',
'The coupon applies to some customers only' => 'The coupon applies to some customers only', 'The coupon applies to some customers only' => 'The coupon applies to some customers only',
'The coupon applies to the selected billing countries' => 'The coupon applies to the selected billing countries',
'The coupon applies to the selected delivery countries' => 'Ce code promo s\'applique seulement aux pays de facturation sélectionnés', 'The coupon applies to the selected delivery countries' => 'Ce code promo s\'applique seulement aux pays de facturation sélectionnés',
'The coupon is valid after a given date' => 'Le code promo est valide seulement à partir d\'une certaine date', 'The coupon is valid after a given date' => 'Le code promo est valide seulement à partir d\'une certaine date',
'The detailed description.' => 'The detailed description.', 'The detailed description.' => 'The detailed description.',
'The image which replaces an undefined country flag (%file) was not found. Please check unknown-flag-path configuration variable, and check that the image exists.' => 'The image which replaces an undefined country flag (%file) was not found. Please check unknown-flag-path configuration variable, and check that the image exists.', 'The image which replaces an undefined country flag (%file) was not found. Please check unknown-flag-path configuration variable, and check that the image exists.' => 'The image which replaces an undefined country flag (%file) was not found. Please check unknown-flag-path configuration variable, and check that the image exists.',
'The loop name \'%name\' is already defined in %className class' => 'The loop name \'%name\' is already defined in %className class', 'The loop name \'%name\' is already defined in %className class' => 'The loop name \'%name\' is already defined in %className class',
'The product sale elements reference %ref doesn\'t exist' => 'The product sale elements reference %ref doesn\'t exist',
'This brand is online' => 'This brand is online', 'This brand is online' => 'This brand is online',
'This category is online.' => 'This category is online.', 'This category is online.' => 'This category is online.',
'This condition is always true' => 'This condition is always true', 'This condition is always true' => 'This condition is always true',
@@ -366,8 +366,10 @@ return array(
'date format' => 'date format', 'date format' => 'date format',
'decimal separator' => 'Séparateur décimal', 'decimal separator' => 'Séparateur décimal',
'delivery module %s is not a Thelia\Module\DeliveryModuleInterface' => 'delivery module %s is not a Thelia\Module\DeliveryModuleInterface', 'delivery module %s is not a Thelia\Module\DeliveryModuleInterface' => 'delivery module %s is not a Thelia\Module\DeliveryModuleInterface',
'hour(s)' => 'hour(s)',
'language locale' => 'language locale', 'language locale' => 'language locale',
'mailing system modification' => 'mailing system modification', 'mailing system modification' => 'mailing system modification',
'minute(s)' => 'minute(s)',
'password confirmation is not the same as password field' => 'password confirmation is not the same as password field', 'password confirmation is not the same as password field' => 'password confirmation is not the same as password field',
'password must be composed of at least 4 characters' => 'password must be composed of at least 4 characters', 'password must be composed of at least 4 characters' => 'password must be composed of at least 4 characters',
'payment module %s is not a Thelia\Module\PaymentModuleInterface' => 'payment module %s is not a Thelia\Module\PaymentModuleInterface', 'payment module %s is not a Thelia\Module\PaymentModuleInterface' => 'payment module %s is not a Thelia\Module\PaymentModuleInterface',
@@ -376,6 +378,4 @@ return array(
'this product id does not exists : %d' => 'this product id does not exists : %d', 'this product id does not exists : %d' => 'this product id does not exists : %d',
'thousands separator' => 'Séparateur de milliers', 'thousands separator' => 'Séparateur de milliers',
'time format' => 'time format', 'time format' => 'time format',
'hour(s)' => 'hour(s)',
'minute(s)' => 'minute(s)',
); );

View File

@@ -42,8 +42,8 @@ return array(
'Available quantity *' => 'Quantité disponible *', 'Available quantity *' => 'Quantité disponible *',
'Available shipping zones' => 'Zones de livraison disponibles', 'Available shipping zones' => 'Zones de livraison disponibles',
'Bad tax list JSON' => 'Mauvais JSON de la liste des taxes', 'Bad tax list JSON' => 'Mauvais JSON de la liste des taxes',
'Billing country' => 'Pays de livraison', 'Billing country' => 'Pays de facturation',
'Billing coutry is' => 'Pays de facturation', 'Billing country is' => 'Le pays de facturation est',
'Brand' => 'Marque', 'Brand' => 'Marque',
'Brand / Supplier' => 'Marque / Fournisseur', 'Brand / Supplier' => 'Marque / Fournisseur',
'Brand name' => 'Nom de la marque', 'Brand name' => 'Nom de la marque',
@@ -87,7 +87,7 @@ return array(
'Default product sale element' => 'Product Sale Element par défaut', 'Default product sale element' => 'Product Sale Element par défaut',
'Deleting %obj% for %id% with parent id %parentId%' => 'Suppresion de %obj%, ID %id%, ID parent %parentId%', 'Deleting %obj% for %id% with parent id %parentId%' => 'Suppresion de %obj%, ID %id%, ID parent %parentId%',
'Delivery country' => 'Pays de livraison', 'Delivery country' => 'Pays de livraison',
'Delivery coutry is' => 'Le pays de livraison est', 'Delivery country is' => 'Le pays de livraison est',
'Delivery module ID not found' => 'Id du module de livraison non trouvé', 'Delivery module ID not found' => 'Id du module de livraison non trouvé',
'Detailed description' => 'Description détaillée', 'Detailed description' => 'Description détaillée',
'Disabled' => 'Désactivé', 'Disabled' => 'Désactivé',
@@ -302,12 +302,12 @@ return array(
'The coupon applies if the cart contains at least one product of the selected categories' => 'Le code promo est valable si le panier contient/ne contient pas des produits appartenant aux catégories sélectionnées', 'The coupon applies if the cart contains at least one product of the selected categories' => 'Le code promo est valable si le panier contient/ne contient pas des produits appartenant aux catégories sélectionnées',
'The coupon applies if the cart contains at least one product of the specified product list' => 'Le code promo est valable si le panier contient/ne contient pas au moins un des produits selectionnés', 'The coupon applies if the cart contains at least one product of the specified product list' => 'Le code promo est valable si le panier contient/ne contient pas au moins un des produits selectionnés',
'The coupon applies to some customers only' => 'Ce code promo est valable pour les clients sélectionnés', 'The coupon applies to some customers only' => 'Ce code promo est valable pour les clients sélectionnés',
'The coupon applies to the selected billing countries' => 'Ce code promo s\'applique pour les pays de facturation sélectionnés',
'The coupon applies to the selected delivery countries' => 'Ce code promo s\'applique pour les pays de livraison sélectionnés', 'The coupon applies to the selected delivery countries' => 'Ce code promo s\'applique pour les pays de livraison sélectionnés',
'The coupon is valid after a given date' => 'Le code promo est valide à partir de cette date', 'The coupon is valid after a given date' => 'Le code promo est valide à partir de cette date',
'The detailed description.' => 'La description détaillée', 'The detailed description.' => 'La description détaillée',
'The image which replaces an undefined country flag (%file) was not found. Please check unknown-flag-path configuration variable, and check that the image exists.' => 'L\'image qui remplace un drapeau de pays manquant (%file) n\'a pas été trouvée. Merci de vérifier la variable de configuration unknown-flag-path.', 'The image which replaces an undefined country flag (%file) was not found. Please check unknown-flag-path configuration variable, and check that the image exists.' => 'L\'image qui remplace un drapeau de pays manquant (%file) n\'a pas été trouvée. Merci de vérifier la variable de configuration unknown-flag-path.',
'The loop name \'%name\' is already defined in %className class' => 'La boucle \'%name\' est déjà définir dans la classe %className', 'The loop name \'%name\' is already defined in %className class' => 'La boucle \'%name\' est déjà définir dans la classe %className',
'The product sale elements reference %ref doesn\'t exist' => 'La déclinaison de produit %ref n\'existe pas',
'This brand is online' => 'Cette marque est en ligne', 'This brand is online' => 'Cette marque est en ligne',
'This category is online.' => 'Cette catégorie est en ligne.', 'This category is online.' => 'Cette catégorie est en ligne.',
'This condition is always true' => 'Cette condition est troujours vérifiée', 'This condition is always true' => 'Cette condition est troujours vérifiée',
@@ -366,8 +366,10 @@ return array(
'date format' => 'Format de date', 'date format' => 'Format de date',
'decimal separator' => 'Séparateur décimal', 'decimal separator' => 'Séparateur décimal',
'delivery module %s is not a Thelia\Module\DeliveryModuleInterface' => 'le module de livraison %s n\'est pas un Thelia\Module\DeliveryModuleInterface', 'delivery module %s is not a Thelia\Module\DeliveryModuleInterface' => 'le module de livraison %s n\'est pas un Thelia\Module\DeliveryModuleInterface',
'hour(s)' => 'heure(s)',
'language locale' => 'Langue locale', 'language locale' => 'Langue locale',
'mailing system modification' => 'Modification du système d\'envoi de mail.', 'mailing system modification' => 'Modification du système d\'envoi de mail.',
'minute(s)' => 'minute(s)',
'password confirmation is not the same as password field' => 'le mot de passe de confirmation n\'est pas le même que le champ mot de passe', 'password confirmation is not the same as password field' => 'le mot de passe de confirmation n\'est pas le même que le champ mot de passe',
'password must be composed of at least 4 characters' => 'le mot de passe doit être composé d\'au moins 4 caractères', 'password must be composed of at least 4 characters' => 'le mot de passe doit être composé d\'au moins 4 caractères',
'payment module %s is not a Thelia\Module\PaymentModuleInterface' => 'Le module de paiement %s n\'est pas une instance de Thelia\Module\PaymentModuleInterface ', 'payment module %s is not a Thelia\Module\PaymentModuleInterface' => 'Le module de paiement %s n\'est pas une instance de Thelia\Module\PaymentModuleInterface ',
@@ -376,6 +378,4 @@ return array(
'this product id does not exists : %d' => 'l\'id du produit %d n\'existe pas', 'this product id does not exists : %d' => 'l\'id du produit %d n\'existe pas',
'thousands separator' => 'Séparateur des milliers', 'thousands separator' => 'Séparateur des milliers',
'time format' => 'Format d\'heure', 'time format' => 'Format d\'heure',
'hour(s)' => 'heure(s)',
'minute(s)' => 'minute(s)',
); );

View File

@@ -294,7 +294,7 @@ class FreeProduct extends AbstractRemoveOnProducts
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Free product when buying one or more selected products', array(), 'coupon'); ->trans('Free product when buying one or more selected products', array());
} }
/** /**
@@ -306,8 +306,7 @@ class FreeProduct extends AbstractRemoveOnProducts
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon adds a free product to the cart if one of the selected products is in the cart.', 'This coupon adds a free product to the cart if one of the selected products is in the cart.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -36,7 +36,7 @@ class RemoveAmountOnAttributeValues extends AbstractRemoveOnAttributeValues
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Fixed amount discount for selected attribute values', array(), 'coupon'); ->trans('Fixed amount discount for selected attribute values', array());
} }
/** /**
@@ -48,8 +48,7 @@ class RemoveAmountOnAttributeValues extends AbstractRemoveOnAttributeValues
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon subtracts the specified amount from the order total for each product which uses the selected attribute values. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon subtracts the specified amount from the order total for each product which uses the selected attribute values. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -37,7 +37,7 @@ class RemoveAmountOnCategories extends AbstractRemoveOnCategories
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Fixed amount discount for selected categories', array(), 'coupon'); ->trans('Fixed amount discount for selected categories', array());
} }
/** /**
@@ -49,8 +49,7 @@ class RemoveAmountOnCategories extends AbstractRemoveOnCategories
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon subtracts the specified amount from the order total for each product which belongs to the selected categories. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon subtracts the specified amount from the order total for each product which belongs to the selected categories. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -41,7 +41,7 @@ class RemoveAmountOnProducts extends AbstractRemoveOnProducts
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Fixed amount discount for selected products', array(), 'coupon'); ->trans('Fixed amount discount for selected products', array());
} }
/** /**
@@ -53,8 +53,7 @@ class RemoveAmountOnProducts extends AbstractRemoveOnProducts
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon subtracts the specified amount from the order total for each selected product. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon subtracts the specified amount from the order total for each selected product. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -42,7 +42,7 @@ class RemovePercentageOnAttributeValues extends AbstractRemoveOnAttributeValues
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Percentage discount for selected attribute values', array(), 'coupon'); ->trans('Percentage discount for selected attribute values', array());
} }
/** /**
@@ -54,8 +54,7 @@ class RemovePercentageOnAttributeValues extends AbstractRemoveOnAttributeValues
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon subtracts from the order total the specified percentage of each product price which uses the selected attribute values. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon subtracts from the order total the specified percentage of each product price which uses the selected attribute values. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -39,7 +39,7 @@ class RemovePercentageOnCategories extends AbstractRemoveOnCategories
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Percentage discount for selected categories', array(), 'coupon'); ->trans('Percentage discount for selected categories', array());
} }
/** /**
@@ -51,8 +51,7 @@ class RemovePercentageOnCategories extends AbstractRemoveOnCategories
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon subtracts from the order total a percentage of the price of each product which belongs to the selected categories. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon subtracts from the order total a percentage of the price of each product which belongs to the selected categories. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -46,7 +46,7 @@ class RemovePercentageOnProducts extends AbstractRemoveOnProducts
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Percentage discount for selected products', array(), 'coupon'); ->trans('Percentage discount for selected products', array());
} }
/** /**
@@ -58,8 +58,7 @@ class RemovePercentageOnProducts extends AbstractRemoveOnProducts
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon subtracts from the order total the specified percentage of each selected product price. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon subtracts from the order total the specified percentage of each selected product price. If the discount is greater than the total order, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -38,7 +38,7 @@ class RemoveXAmount extends AbstractRemove
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Fixed Amount Discount', array(), 'coupon'); ->trans('Fixed Amount Discount', array());
} }
/** /**
@@ -50,8 +50,7 @@ class RemoveXAmount extends AbstractRemove
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon will subtracts a set amount from the total cost of an order. If the discount is greater than the total order corst, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon will subtracts a set amount from the total cost of an order. If the discount is greater than the total order corst, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -41,7 +41,7 @@ class RemoveXPercent extends AbstractRemove
{ {
return $this->facade return $this->facade
->getTranslator() ->getTranslator()
->trans('Remove X percent to total cart', array(), 'coupon'); ->trans('Remove X percent to total cart', array());
} }
/** /**
@@ -53,8 +53,7 @@ class RemoveXPercent extends AbstractRemove
->getTranslator() ->getTranslator()
->trans( ->trans(
'This coupon will offert a flat percentage off a shopper\'s entire order (not applied to shipping costs or tax rates). If the discount is greater than the total order corst, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.', 'This coupon will offert a flat percentage off a shopper\'s entire order (not applied to shipping costs or tax rates). If the discount is greater than the total order corst, the customer will only pay the shipping, or nothing if the coupon also provides free shipping.',
array(), array()
'coupon'
); );
return $toolTip; return $toolTip;

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div id="condition-add-operators-values" class="form-group"> <div id="condition-add-operators-values" class="form-group">
<label for="operator">{$label}</label> <label for="operator">{$label}</label>
<div class="row"> <div class="row">

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div class="form-group"> <div class="form-group">
<label for="operator">{intl l="Products are :"}</label> <label for="operator">{intl l="Products are :"}</label>
{$operatorSelectHtml nofilter} {$operatorSelectHtml nofilter}

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div class="form-group"> <div class="form-group">
<label for="operator">{intl l="Products are :"}</label> <label for="operator">{intl l="Products are :"}</label>
{$operatorSelectHtml nofilter} {$operatorSelectHtml nofilter}

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div id="condition-add-operators-values" class="form-group"> <div id="condition-add-operators-values" class="form-group">
<label for="operator">{$label}</label> <label for="operator">{$label}</label>
<div class="row"> <div class="row">

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div class="form-group"> <div class="form-group">
<label for="operator">{$label}</label> <label for="operator">{$label}</label>

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<select class="form-control" id="{$inputKey}-operator" name="{$inputKey}[operator]"> <select class="form-control" id="{$inputKey}-operator" name="{$inputKey}[operator]">
{foreach $operators as $key => $operator} {foreach $operators as $key => $operator}
<option value="{$key}"{if $key == $value}selected="selected"{/if}>{$operator}</option> <option value="{$key}"{if $key == $value}selected="selected"{/if}>{$operator}</option>

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div class="form-group"> <div class="form-group">
<label for="operator">{$countryLabel}</label> <label for="operator">{$countryLabel}</label>
{$operatorSelectHtml nofilter} {$operatorSelectHtml nofilter}

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<select class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]"> <select class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]">
{foreach $currencies as $key => $currency} {foreach $currencies as $key => $currency}
<option value="{$key}"{if $key == $value}selected="selected"{/if}>{$currency}</option> <option value="{$key}"{if $key == $value}selected="selected"{/if}>{$currency}</option>

View File

@@ -1,3 +1,4 @@
{default_translation_domain domain='bo.default'}
<div class="form-group"> <div class="form-group">
<label for="operator">{intl l="Customer is"}</label> <label for="operator">{intl l="Customer is"}</label>
{$operatorSelectHtml nofilter} {$operatorSelectHtml nofilter}

View File

@@ -1,4 +1,5 @@
<input type="number" value="{$value}" class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]" placeholder="Enter quantity" />
<input type="number" value="{$value}" class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]" placeholder="{intl l='Enter quantity'}" />
{* Use a text field instead {* Use a text field instead
<select class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]"> <select class="form-control" id="{$inputKey}-value" name="{$inputKey}[value]">
{for $index=$min to $max} {for $index=$min to $max}

View File

@@ -1,3 +1,5 @@
{default_translation_domain domain='bo.default'}
<input type="hidden" name="{$fieldName}[operator]" value="{$criteria}" /> <input type="hidden" name="{$fieldName}[operator]" value="{$criteria}" />
<div id="condition-add-operators-values" class="form-group"> <div id="condition-add-operators-values" class="form-group">

View File

@@ -1,3 +1,5 @@
{default_translation_domain domain='bo.default'}
{block name="discount-field"}{/block} {block name="discount-field"}{/block}
<div class="form-group input-coupon-attribute-id"> <div class="form-group input-coupon-attribute-id">

View File

@@ -1,3 +1,5 @@
{default_translation_domain domain='bo.default'}
{block name="discount-field"}{/block} {block name="discount-field"}{/block}
<div class="form-group input-coupon-categories-id"> <div class="form-group input-coupon-categories-id">

View File

@@ -1,3 +1,5 @@
{default_translation_domain domain='bo.default'}
{block name="discount-field"}{/block} {block name="discount-field"}{/block}
<div class="form-group input-coupon-category-id"> <div class="form-group input-coupon-category-id">