From 3fb25eec92c0c72760c4bf8040efd4b86c446bc6 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 00:38:41 +0000 Subject: Fixed #579 --- framework/I18N/core/MessageSource_XLIFF.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'framework/I18N') 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; } /** -- cgit v1.2.3