|
|||
|
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Delphi Resource DLLs and Chinese languages
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
||||||||||||||||
| Delphi Resource DLLs and Chinese languages - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
bikemike Member
|
Currently I have Chinese Simplified (cp 2052) and Chinese Traditional (cp 1028) selected for the languages to build in my Delphi Sisu project. This gives me CH and CHT extensions to my application respectively. My UI gives choice of ALL or COMPATIBLE languages to change to at run time. When I am on a Taiwan set up system, I am offered these compatible languages: 中文(繁體) Chinese (Traditional)For all languages I am offered ChineseOn a Simplified set up system I am offered NO compatible languages For all languages, I am offered these: ChineseIf I add Chinese Simplified (People's Republic of China) to the list of languages built by Sisulizer I get a CHS extension. This does get listed when I try to change language at run time. Now I get this 'compatible' language: 中文(简体) (中华人民共和国) Chinese (Simplified) (People's Republic of China)And if I select all languages I see it listed as Chinese (People's Republic of China)When the extension is Processed it does a second pass with the last letter chopped off. Thus CHT is first processed as CHT - This adds Chinese Traditional Taiwan to the list. Then it is processed as CH - this adds Chinese Traditional to the list. Hence why my EXE.CH Chinese Simplified Resource is not offered as compatible when I run on a Chinese (PRC) system setup - CH is considered to be the base Traditional. When I add CHS this is accepted as compatible, but is specific to PRC. Is there is no way to get neutral Chinese Simplified to work? Attachment: allChineseExtensions.jpg (Downloaded 45 times)
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
bikemike Member
|
Anything to offer on this one? ...
|
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Ilkka.Salmenius Administrator
|
I am woring on it, but I like to solve the TAction with menus problem first.
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
What do you mean "I am offered these compatible languages". Do you mean that the language dialog of Sisulizer shows those languages in the list?For all languages I am offered What does all languages mean? Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
bikemike Member
|
Sorry, I have two menus to change language. 1 One feeds in doUseCurrentLanguage 2 One feeds in doCompatible By 'For all languages' I mean option 1, list in English, ignore code page incompatabilities For 'compatible languages' I mean option 2, list in Native and only show code-page compatible languages. Mike
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
I tested following: - Original language is English - System locale is Chinese (Taiwan) - I have both .CH and .CHT resource DLL If I use doCompatible application shows: - English - Chinese (Traditional) (Taiwan) This just as it should be. If I do not use doCompatible application shows also - Chinese (Simplified) That is also as it should be. I tested on Vista. What is your OS?
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
bikemike Member
|
XP SP3
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Jaakko.Salmenius Administrator
|
English XP?
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Jaakko.Salmenius Administrator
|
I found the reason. XP and Vista has different "default" Chinese. In XP it is Chinese (Traditional) but in Vista it is Chinese (Simplified). This is why in XP .CH is also included as Trad Chinese and included to the list. Here is the fix: function LocaleToCodePage(locale: Integer): Integer; begin if locale = LANG_CHINESE then Result := 936 else Result := StrToInt(GetLocaleStr(locale, LOCALE_IDEFAULTANSICODEPAGE, '0')); end; Modify your LaResource.pas in the above way. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
bikemike Member
|
OK - seems to work, gone into test now. Thanks.
|
||||||||||||||||
| |||||||||||||||||
| Current time is 05:55 pm | |
| .NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Delphi Resource DLLs and Chinese languages | |
Sisulizer software localization tool - Three simple steps to localize