diff options
author | wei <> | 2007-03-30 00:01:12 +0000 |
---|---|---|
committer | wei <> | 2007-03-30 00:01:12 +0000 |
commit | df61f326572b0429c2b289da5fb7b6b5d9592a73 (patch) | |
tree | 15597d2896dbc978f35dfb85ff9be56436c6cb26 | |
parent | d839dd06e61c58fb76ce9ed0dfea4fb1231b6db8 (diff) |
Fixed #367
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | framework/I18N/core/MessageSource_XLIFF.php | 10 |
2 files changed, 12 insertions, 2 deletions
@@ -6,6 +6,10 @@ BUG: Ticket#505 - cultureInfo::getEnglishName does not return an arrary (Wei) BUG: Ticket#508 - CultureInfo class: PHP Notice because of missing static declaration (Wei) BUG: Ticket#558 - TRadionButtonList generates a empty onclick attribute (Qiang) BUG: Ticket#573 - NumberFormat Bug (Wei) +ENH: Ticket#367 - Change default extension for XLIFF files (Wei, changed to support .xlf extension). +ENH: Upgraded javascript library Prototype to version 1.5.0 (Wei) +ENH: Upgraded javascript library Scriptaculous to version 1.7.0 (Wei) +ENH: Upgraded TinyMCE editor to version 2.1 (Wei) Version 3.0.6 December 4, 2006 ============================== 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);
|