From 0f6ac8fcd6a0502b7be5c626db7a39c9431f768b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 27 Aug 2010 06:42:02 +0000 Subject: [PATCH] Fix bug in translator tool --- dev/translation/langAutoParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/translation/langAutoParser.class.php b/dev/translation/langAutoParser.class.php index d6bfd5a7f9e..e18f6e89a8a 100644 --- a/dev/translation/langAutoParser.class.php +++ b/dev/translation/langAutoParser.class.php @@ -48,7 +48,6 @@ class langAutoParser { if ($this->limittofile && $this->limittofile != $file) continue; $counter++; $fileContent = null; - $this->translatedFiles = array(); $refPath = $this->langDir.$this->refLang.self::DIR_SEPARATOR.$file; $fileContent = file($refPath,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES); print "Processing file " . $file . ", with ".sizeof($fileContent)." lines
\n"; @@ -80,6 +79,7 @@ class langAutoParser { // Process translation of source file for each target languages foreach($targetlangs as $mydestLang) { + $this->translatedFiles = array(); $destPath = $this->langDir.$mydestLang.self::DIR_SEPARATOR.$file; // Check destination file presence