summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-03-02 10:46:17 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-03-02 11:55:36 +0100
commite90465a5316f65972bc3c6520106be0d5e5205ac (patch)
tree24f317bb0ee391c3669188713055f055c1d4b401
parent94d4301ac51589f0f5ae39039c0f1f7379677b3a (diff)
fdo#46181 Use Traditional Chinese installer for zh-HK and zh-MO locales
Microsoft Installer thinks that it is a good idea to fall back to zh-CN from zh-HK and zh-MO. It is wrong, because zh-CN uses Simplified Chinese zh-HK and zh-MO use Traditional Chinese. So we need to fall back to zh-TW. Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-rw-r--r--solenv/bin/modules/installer/windows/msiglobal.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/solenv/bin/modules/installer/windows/msiglobal.pm b/solenv/bin/modules/installer/windows/msiglobal.pm
index 96c9606903e2..03b31a30e954 100644
--- a/solenv/bin/modules/installer/windows/msiglobal.pm
+++ b/solenv/bin/modules/installer/windows/msiglobal.pm
@@ -1111,6 +1111,19 @@ sub create_transforms
chdir($installdir);
$systemcall = $msidb . " " . " -d " . $basedbname . " -r " . $windowslanguage;
system($systemcall);
+ # fdo#46181 - zh-HK and zh-MO should have fallen back to zh-TW not to zh-CN
+ # we need to hack zh-HK and zh-MO LCIDs directly into the MSI
+ if($windowslanguage eq '1028')
+ {
+ rename 1028,3076;
+ $systemcall = $msidb . " " . " -d " . $basedbname . " -r " . 3076;
+ system($systemcall);
+ rename 3076,5124;
+ $systemcall = $msidb . " " . " -d " . $basedbname . " -r " . 5124;
+ system($systemcall);
+ $templatevalue = $templatevalue . "," . 3076 . "," . 5124;
+ rename 5124,1028;
+ }
chdir($from);
unlink($transformfile);