diff --git a/templates/email/default/default-html-layout.tpl b/templates/email/default/default-html-layout.tpl index 2e96d2f35..a40c9f013 100644 --- a/templates/email/default/default-html-layout.tpl +++ b/templates/email/default/default-html-layout.tpl @@ -1,3 +1,14 @@ +{*************************************************************************************/ +/* This file is part of the Thelia package. */ +/* */ +/* Copyright (c) OpenStudio */ +/* email : dev@thelia.net */ +/* web : http://www.thelia.net */ +/* */ +/* For the full copyright and license information, please view the LICENSE.txt */ +/* file that was distributed with this source code. */ +/*************************************************************************************} + {* This is the default HTML mail layout. Use {$message_body} as a placeholder for the HTML message defined in the 'HTML Message' field in the back-office, or the @@ -7,4 +18,8 @@ Be sure to use the nofilter modifier, to prevent HTML escaping. DO NOT DELETE THIS FILE, some plugins may use it. *} + +{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} +{default_translation_domain domain='email.default'} + {block name='message-body'}{$message_body nofilter}{/block} \ No newline at end of file diff --git a/templates/email/default/default-text-layout.tpl b/templates/email/default/default-text-layout.tpl index aeb07e655..cd3d38a18 100644 --- a/templates/email/default/default-text-layout.tpl +++ b/templates/email/default/default-text-layout.tpl @@ -1,3 +1,14 @@ +{*************************************************************************************/ +/* This file is part of the Thelia package. */ +/* */ +/* Copyright (c) OpenStudio */ +/* email : dev@thelia.net */ +/* web : http://www.thelia.net */ +/* */ +/* For the full copyright and license information, please view the LICENSE.txt */ +/* file that was distributed with this source code. */ +/*************************************************************************************} + {* This is the default TEXT mail layout. Use {$message_body} as a placeholder for the text message defined in the 'TEXT Message' field in the back-office, or the @@ -7,4 +18,8 @@ Be sure to use the nofilter modifier, to prevent HTML escaping. DO NOT DELETE THIS FILE, some plugins may use it. *} + +{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *} +{default_translation_domain domain='email.default'} + {block name='message-body'}{$message_body nofilter}{/block} \ No newline at end of file diff --git a/templates/email/default/order_confirmation.html b/templates/email/default/sample_order_confirmation.html similarity index 69% rename from templates/email/default/order_confirmation.html rename to templates/email/default/sample_order_confirmation.html index 4441e52cd..cbc034c42 100644 --- a/templates/email/default/order_confirmation.html +++ b/templates/email/default/sample_order_confirmation.html @@ -10,7 +10,7 @@
-| Référence | -Désignation | -P.U. € | -Qté | +{intl l="Référence"} | +{intl l="Désignation"} | +{intl l="P.U. %currency" currency=$orderCurrency} | +{intl l="Qté"} |
|---|---|---|---|---|---|---|---|
| Montant total avant remise € | +{intl l="Montant total avant remise %currency" currency=$orderCurrency} | {$orderCurrency} {$TOTAL_TAXED_AMOUNT - $POSTAGE} | |||||
| {$orderCurrency} {$POSTAGE} | |||||||
| Montant total de la commande € | +{intl l="Montant total de la commande%currency" currency=$orderCurrency} | {$orderCurrency} {$TOTAL_TAXED_AMOUNT} | |||||
LIVRAISON : {loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{$TITLE}{/loop}
+{loop name="delivery-module" type="module" id=$DELIVERY_MODULE}{intl l="LIVRAISON : %module" module=$TITLE}{/loop}
{loop type="order_address" name="delivery_address" id=$INVOICE_ADDRESS} -N° de client : {$customer_ref}
-Nom : +
{intl l="N° de client : %ref" ref=$customer_ref}
+{intl l="Nom :"} {loop type="title" name="order-invoice-address-title" id=$TITLE}{$LONG}{/loop} {$FIRSTNAME} {$LASTNAME}
-N° et rue : +
{intl l="N° et rue :"} {$ADDRESS1}
-Complément : {$ADDRESS2} +
{intl l="Complément : "}{$ADDRESS2} {$ADDRESS3}
-Code postal : {$ZIPCODE}
-Ville : {$CITY}
-Pays : {loop type="country" name="country_delivery" id=$COUNTRY}{$TITLE}{/loop}
+{intl l="Code postal : %zip" zip=$ZIPCODE}
+{intl l="Ville : %city" city=$CITY}
+{loop type="country" name="country_delivery" id=$COUNTRY}{intl l="Pays : %name" name=$TITLE}{/loop}
FACTURATION : paiement par {loop name="payment-module" type="module" id=$PAYMENT_MODULE}{$TITLE}{/loop}
+{loop name="payment-module" type="module" id=$PAYMENT_MODULE}{intl l="FACTURATION : paiement par %module" module=$TITLE}{/loop}
{loop type="order_address" name="delivery_address" id=$DELIVERY_ADDRESS} -N° de client : {$customer_ref}
+N° de client : {$customer_ref}
Nom : {loop type="title" name="order-invoice-address-title" id=$TITLE}{$LONG}{/loop} {$FIRSTNAME} {$LASTNAME}
-N° et rue : +
{intl l="N° et rue :"} {$ADDRESS1}
-Complément : {$ADDRESS2} +
{intl l="Complément : "}{$ADDRESS2} {$ADDRESS3}
-Code postal : {$ZIPCODE}
-Ville : {$CITY}
-Pays : {loop type="country" name="country_delivery" id=$COUNTRY}{$TITLE}{/loop}
+{intl l="Code postal : %zip" zip=$ZIPCODE}
+{intl l="Ville : %city" city=$CITY}
+{loop type="country" name="country_delivery" id=$COUNTRY}{intl l="Pays : %name" name=$TITLE}{/loop}
Le suivi de votre commande est disponible dans la rubrique mon compte sur {config key="url_site"}
+{intl l="Le suivi de votre commande est disponible dans la rubrique mon compte sur %url" url={config key="url_site"}}