Kaydet (Commit) 0f563028 authored tarafından Andras Timar's avatar Andras Timar

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.
üst 73e9eac0
...@@ -1111,6 +1111,19 @@ sub create_transforms ...@@ -1111,6 +1111,19 @@ sub create_transforms
chdir($installdir); chdir($installdir);
$systemcall = $msidb . " " . " -d " . $basedbname . " -r " . $windowslanguage; $systemcall = $msidb . " " . " -d " . $basedbname . " -r " . $windowslanguage;
system($systemcall); 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); chdir($from);
unlink($transformfile); unlink($transformfile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment