Fixed a minor template processing problem with \"
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">configuration section</a> 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 <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">la section configuration</a> de l\'administration.',
|
||||
'To use features or attributes on this product, please select a product template. You can define product templates in the <a href="%tpl_mgmt_url" target="tpl_window">configuration section</a> 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 <a href="%tpl_mgmt_url" target="tpl_window">la section configuration</a> 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 <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">the attributes configuration page</a>.' => 'Vous pouvez modifier les déclinaisons et leur position dans <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">la gestion des déclinaisons</a>.',
|
||||
'You can change feature and their positions in <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">the features configuration page</a>.' => 'Vous pouvez modifier les caractéristiques et leur position dans <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">la gestion des caractéristiques</a>.',
|
||||
'You can change template attributes and their positions in <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">the template configuration page</a>.' => 'Vous pouvez modifier les déclinaisons du template et leur position dans <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">la configuration des déclinaisons</a>. ',
|
||||
'You can change templates features and their positions in <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">the template configuration page</a>.' => 'Vous pouvez modifier les caractéristiques du template et leur position dans <a href=\"%tpl_mgmt_url\" target=\"tpl_window\">la configuration des templates</a>.',
|
||||
'You can change attributes and their positions in <a href="%tpl_mgmt_url" target="tpl_window">the attributes configuration page</a>.' => 'Vous pouvez modifier les déclinaisons et leur position dans <a href="%tpl_mgmt_url" target="tpl_window">la gestion des déclinaisons</a>.',
|
||||
'You can change feature and their positions in <a href="%tpl_mgmt_url" target="tpl_window">the features configuration page</a>.' => 'Vous pouvez modifier les caractéristiques et leur position dans <a href="%tpl_mgmt_url" target="tpl_window">la gestion des caractéristiques</a>.',
|
||||
'You can change template attributes and their positions in <a href="%tpl_mgmt_url" target="tpl_window">the template configuration page</a>.' => 'Vous pouvez modifier les déclinaisons du template et leur position dans <a href="%tpl_mgmt_url" target="tpl_window">la configuration des déclinaisons</a>. ',
|
||||
'You can change templates features and their positions in <a href="%tpl_mgmt_url" target="tpl_window">the template configuration page</a>.' => 'Vous pouvez modifier les caractéristiques du template et leur position dans <a href="%tpl_mgmt_url" target="tpl_window">la configuration des templates</a>.',
|
||||
'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',
|
||||
|
||||
Reference in New Issue
Block a user