summaryrefslogtreecommitdiff
path: root/framework/I18N
diff options
context:
space:
mode:
authorwei <>2007-03-30 00:38:41 +0000
committerwei <>2007-03-30 00:38:41 +0000
commit3fb25eec92c0c72760c4bf8040efd4b86c446bc6 (patch)
treea7c76d761f432b29dfa567c4e46acb62a7abf18b /framework/I18N
parenteddf47f3e36a30f6b905e4d667514eb34968ff8a (diff)
Fixed #579
Diffstat (limited to 'framework/I18N')
-rw-r--r--framework/I18N/core/MessageSource_XLIFF.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/I18N/core/MessageSource_XLIFF.php b/framework/I18N/core/MessageSource_XLIFF.php
index eafc0983..64277e7b 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;
}
/**