From e854b357ec827a093af2c093ea227c74926f25b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 29 Jun 2010 23:59:12 +0000 Subject: [PATCH] Enhancement --- dev/translation/langAutoParser.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/translation/langAutoParser.class.php b/dev/translation/langAutoParser.class.php index a003c6fe682..83e9d5e6255 100644 --- a/dev/translation/langAutoParser.class.php +++ b/dev/translation/langAutoParser.class.php @@ -51,7 +51,7 @@ class langAutoParser { $destPath = $this->langDir.$this->destLang.self::DIR_SEPARATOR.$file; $fileContent = file($refPath,FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); - print "Processing file " . $file . ", found ".sizeof($fileContent)." records
\n"; + print "Processing file " . $file . ", with ".sizeof($fileContent)." lines
\n"; // Check destination file presence if ( ! file_exists( $destPath ) ){ // No file presente generate file @@ -135,8 +135,9 @@ FILE_SKIP_EMPTY_LINES); else $val=utf8_decode($this->translateTexts(array($value),substr($this->refLang,0,2),substr($this->destLang,0,2))); if ($key == 'CHARSET') $val=$this->outputpagecode; + $val=trim($val); - if (empty(trim($val))) return 0; + if (empty($val)) return 0; $this->translatedFiles[$file][] = $key . '=' . $val ; return 1;