diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 5fb79baca63..b673ed41f19 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -397,7 +397,7 @@ class Translate { if (! empty($this->tab_translate[$key])) // Translation is available { $str=preg_replace('/\\\"/','"',$this->tab_translate[$key]); // To solve some translation keys containing key=abc\"def\"ghi instead of abc"def"ghi - if (! preg_match('/^Format/',$str)) $str=sprintf($str,$param1,$param2,$param3,$param4); // Replace %s and %d + if (! preg_match('/^Format/',$key)) $str=sprintf($str,$param1,$param2,$param3,$param4); // Replace %s and %d if ($maxsize) $str=dol_trunc($str,$maxsize); // On remplace les tags HTML par __xx__ pour eviter traduction par htmlentities $newstr=str_replace('<','__lt__',$str);