diff --git a/core/lib/Thelia/Controller/Admin/TranslationsController.php b/core/lib/Thelia/Controller/Admin/TranslationsController.php index 7bea68e6f..cb7c3f072 100644 --- a/core/lib/Thelia/Controller/Admin/TranslationsController.php +++ b/core/lib/Thelia/Controller/Admin/TranslationsController.php @@ -94,6 +94,10 @@ class TranslationsController extends BaseAdminController case 'pf' : $template = new TemplateDefinition($item_id, TemplateDefinition::PDF); break; + + case 'ma' : + $template = new TemplateDefinition($item_id, TemplateDefinition::EMAIL); + break; } if ($template) { diff --git a/core/lib/Thelia/Core/Template/Loop/Template.php b/core/lib/Thelia/Core/Template/Loop/Template.php index c5b6a95f3..fc9505449 100644 --- a/core/lib/Thelia/Core/Template/Loop/Template.php +++ b/core/lib/Thelia/Core/Template/Loop/Template.php @@ -64,7 +64,8 @@ class Template extends BaseLoop implements ArraySearchLoopInterface new Type\EnumListType(array( 'front-office', 'back-office', - 'pdf' + 'pdf', + 'email' )) ) ) @@ -80,6 +81,8 @@ class Template extends BaseLoop implements ArraySearchLoopInterface $templateType = TemplateDefinition::BACK_OFFICE; else if ($type == 'pdf') $templateType = TemplateDefinition::PDF; + else if ($type == 'email') + $templateType = TemplateDefinition::EMAIL; return TemplateHelper::getInstance()->getList($templateType); } diff --git a/templates/backOffice/default/translations.html b/templates/backOffice/default/translations.html index fa41a3cf6..5a48e5277 100755 --- a/templates/backOffice/default/translations.html +++ b/templates/backOffice/default/translations.html @@ -45,6 +45,7 @@ + @@ -91,6 +92,19 @@ + {else if $item_to_translate == 'ma'} +