From d4857f070d7721560af8dfe235ca67b50e043c1c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 13 Jul 2006 14:39:46 +0000 Subject: [PATCH] New: On peut mettre des \n dans les fichiers traduction --- htdocs/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/translate.class.php b/htdocs/translate.class.php index 1e5b8149cbf..b6d3e59e995 100644 --- a/htdocs/translate.class.php +++ b/htdocs/translate.class.php @@ -173,7 +173,7 @@ class Translate { //print "Domain=$domain, found a string for $tab[0] with value $tab[1]
"; 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); } }