diff --git a/core/lib/Thelia/Core/Template/TemplateHelper.php b/core/lib/Thelia/Core/Template/TemplateHelper.php
index d5b996052..abb0d8649 100644
--- a/core/lib/Thelia/Core/Template/TemplateHelper.php
+++ b/core/lib/Thelia/Core/Template/TemplateHelper.php
@@ -236,6 +236,8 @@ class TemplateHelper
Tlog::getInstance()->debug("Strings found: ", $matches[2]);
+ $idx = 0;
+
foreach ($matches[2] as $match) {
$hash = md5($match);
@@ -247,8 +249,12 @@ class TemplateHelper
} else {
$num_texts++;
- // remove \'
- $match = str_replace("\\'", "'", $match);
+ // remove \' (or \"), that will prevent the translator to work properly, as
+ // "abc \def\" ghi" will be passed as abc "def" ghi to the translator.
+
+ $quote = $matches[1][$idx];
+
+ $match = str_replace("\\$quote", $quote, $match);
$strings[$hash] = array(
'files' => array($short_path),
@@ -257,6 +263,8 @@ class TemplateHelper
'dollar' => strstr($match, '$') !== false
);
}
+
+ $idx++;
}
}
}
diff --git a/templates/backOffice/default/I18n/fr_FR.php b/templates/backOffice/default/I18n/fr_FR.php
index 812e7f221..c9709b5ae 100755
--- a/templates/backOffice/default/I18n/fr_FR.php
+++ b/templates/backOffice/default/I18n/fr_FR.php
@@ -878,7 +878,7 @@ return array(
'To create a new content, select an existing folder, or create a new one.' => 'Pour créer un nouveau contenu, sélectionnez un dossier existant ou créez en un nouveau',
'To create a new product, select an existing category, or create a new one.' => 'Pour créer un nouveau produit, veuillez sélectionner une rubrique existante ou en créer une nouvelle',
'To remove a value from the combination, select it and click "remove"' => 'Afin de supprimer une valeur de la combinaison, sélectionnez la et cliquez sur "Enlever"',
- 'To use features or attributes on this product, please select a product template. You can define product templates in the configuration section of the administration.' => 'Pour utiliser les déclinaisons et les caractéristiques sur ce produit, choisissez un tempplate produit. Vous pouvez gérer les templates de produit dans la section configuration de l\'administration.',
+ 'To use features or attributes on this product, please select a product template. You can define product templates in the configuration section of the administration.' => 'Pour utiliser les déclinaisons et les caractéristiques sur ce produit, choisissez un tempplate produit. Vous pouvez gérer les templates de produit dans la section configuration de l\'administration.',
'Today' => 'Aujourd\'hui',
'Top level' => 'Niveau 1',
'Top level Contents' => 'Contenus de niveau 1',
@@ -937,10 +937,10 @@ return array(
'You can attach here some content to this category' => 'Vous pouvez lier ici des contenus à cette rubrique',
'You can attach here some content to this product' => 'Vous pouvez associer des contenus avec ce produit',
'You can attach this product to more categories in the details tab.' => 'Vous pouvez lier ce produit à plusieurs rubriques dans l\'onglet détail.',
- 'You can change attributes and their positions in the attributes configuration page.' => 'Vous pouvez modifier les déclinaisons et leur position dans la gestion des déclinaisons.',
- 'You can change feature and their positions in the features configuration page.' => 'Vous pouvez modifier les caractéristiques et leur position dans la gestion des caractéristiques.',
- 'You can change template attributes and their positions in the template configuration page.' => 'Vous pouvez modifier les déclinaisons du template et leur position dans la configuration des déclinaisons. ',
- 'You can change templates features and their positions in the template configuration page.' => 'Vous pouvez modifier les caractéristiques du template et leur position dans la configuration des templates.',
+ 'You can change attributes and their positions in the attributes configuration page.' => 'Vous pouvez modifier les déclinaisons et leur position dans la gestion des déclinaisons.',
+ 'You can change feature and their positions in the features configuration page.' => 'Vous pouvez modifier les caractéristiques et leur position dans la gestion des caractéristiques.',
+ 'You can change template attributes and their positions in the template configuration page.' => 'Vous pouvez modifier les déclinaisons du template et leur position dans la configuration des déclinaisons. ',
+ 'You can change templates features and their positions in the template configuration page.' => 'Vous pouvez modifier les caractéristiques du template et leur position dans la configuration des templates.',
'You can change the default category (%title) in the "General" tab.' => 'Vous pouvez changer la catégorie par défaut (%title) dans l\'onglet "Général"',
'You can change the default folder (%title) in the "General" tab.' => 'Vous pouvez modifier le dossier par défaut (%title) dans l\'onglet "Général".',
'You can\'t delete this administrator' => 'Vous ne pouvez pas supprimer cet administrateur',