New: On peut mettre des \n dans les fichiers traduction

This commit is contained in:
Laurent Destailleur 2006-07-13 14:39:46 +00:00
parent ceb10ce850
commit d4857f070d

View File

@ -173,7 +173,7 @@ class Translate {
//print "Domain=$domain, found a string for $tab[0] with value $tab[1]<br>";
if (! $this->getTransFromTab($key))
{
if (isset($tab[1])) $value=ereg_replace('\\\n',"\n",$tab[1]);
if (isset($tab[1])) $value=trim(ereg_replace('\\\n',"\n",$tab[1]));
$this->setTransFromTab($key,$value);
}
}