Article View: borland.public.cppbuilder.internationalization
Article #32BCB 5: Asian Characters on VCL Components?
From: epearson
Date: Fri, 27 Jul 2007 14:45
Date: Fri, 27 Jul 2007 14:45
24 lines
2455 bytes
2455 bytes
I'm trying to translate a C++ Builder application into various Asian languages. Nothing fancy, just the menus and a few captions need to be translated. To start with, I have a simple app with one caption, and am trying to render it as Traditional Chinese. Using helpful information from this group, I've managed to figure out: > Setting the local for this specific app using the ...Software\Locales\my_appand_path.exe registry entry, and setting a string value of 'CHT > verifying that my app loads the .CHT version of the form > Encoding the Unicode Strings as Binary Resources in a separate.RC file which becomes part of the CHT subproject, and using the #pragma code_page(950) statement in the.RC file. > Reading them into the application I tried using the various WideCharToStr() functions and got back all question marks. After some digging, I found the Windows API WideCharToMultiByte() function, and manually forced the codepage to 950. Now the call returns what looks like it could be real MBCS strings, but when I assign that to the caption, the caption is still garbage. The caption's Font is set to MingLiU, and I've tried both DEFAULT_CHARSET and CHINESE_BIG5, and gotten the same result. It seems to me there's a piece of the puzzle that I'm missing. Any help would be appreciated.
Technical Details
Message-ID:
<1185547506.342868.308590@k79g2000hse.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!k79g2000hse.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10297d,a0f0ee45be19e473,start X-Google-Attributes: gid10297d,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!k79g2000hse.googlegroups.com!not-for-mail From: epearson@rumbledev.com Newsgroups: borland.public.cppbuilder.internationalization Subject: BCB 5: Asian Characters on VCL Components? Date: Fri, 27 Jul 2007 07:45:06 -0700 Organization: http://groups.google.com Lines: 25 Message-ID: <1185547506.342868.308590@k79g2000hse.googlegroups.com> NNTP-Posting-Host: 68.162.251.3 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1185547506 18740 127.0.0.1 (27 Jul 2007 14:45:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Jul 2007 14:45:06 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k79g2000hse.googlegroups.com; posting-host=68.162.251.3; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0