summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2007-03-30 00:01:12 +0000
committerwei <>2007-03-30 00:01:12 +0000
commitdf61f326572b0429c2b289da5fb7b6b5d9592a73 (patch)
tree15597d2896dbc978f35dfb85ff9be56436c6cb26 /framework
parentd839dd06e61c58fb76ce9ed0dfea4fb1231b6db8 (diff)
Fixed #367
Diffstat (limited to 'framework')
-rw-r--r--framework/I18N/core/MessageSource_XLIFF.php10
1 files changed, 8 insertions, 2 deletions
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);