From df61f326572b0429c2b289da5fb7b6b5d9592a73 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 00:01:12 +0000 Subject: Fixed #367 --- framework/I18N/core/MessageSource_XLIFF.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php index 1f537932..6a920e9d 100644 --- a/framework/I18N/core/MessageSource_XLIFF.php +++ b/framework/I18N/core/MessageSource_XLIFF.php @@ -150,7 +150,13 @@ class MessageSource_XLIFF extends MessageSource $byDir = $this->getCatalogueByDir($catalogue); $catalogues = array_merge($byDir,array_reverse($catalogues)); - return $catalogues; + $files = array(); + foreach($catalogues as $file) + { + $files[] = $file; + $files[] = preg_replace('/\.xml$/', '.xlf', $file); + } + return $files; } /** @@ -478,7 +484,7 @@ class MessageSource_XLIFF extends MessageSource $variant = array_shift($variants); $file = $this->getSource($variant); $dir = dirname($file); - if(!is_dir($dir)) + if(!is_dir($dir)) { @mkdir($dir); @chmod($dir,0777); -- cgit v1.2.3