diff options
author | Andras Timar <atimar@suse.com> | 2012-03-02 10:46:17 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-03-02 10:51:44 +0100 |
commit | 0f56302890e2f587dfc0230a0445199db97b4ffd (patch) | |
tree | 0e9a00352a3f0ce45b650e8e0fa8b2334ef695ff /solenv | |
parent | add missing loop conditions (diff) | |
download | core-0f56302890e2f587dfc0230a0445199db97b4ffd.tar.gz core-0f56302890e2f587dfc0230a0445199db97b4ffd.zip |
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.
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/windows/msiglobal.pm | 13 |
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 f7185d3d5cf0..6f985c4cb192 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); |