summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-03-02 10:46:17 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-03-02 12:12:16 +0000
commitb233485a3ef2e0acb65032945e46eb3d20dbc3d9 (patch)
tree07a348876fa933c32e4116951de48b7aeb2cdf7f
parentd69bb1d4535871b981df27f11bd4918ad3a41fe4 (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> Signed-off-by: Tor Lillqvist <tml@iki.fi> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
-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);