diff options
-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);
|