🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internationalization
3 messages
3 total messages Started by epearson Fri, 27 Jul 2007 14:45
BCB 5: Asian Characters on VCL Components?
#32
Author: epearson
Date: Fri, 27 Jul 2007 14:45
24 lines
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.
Re: BCB 5: Asian Characters on VCL Components?
#33
Author: Ilan
Date: Fri, 03 Aug 2007 12:47
2 lines
1421 bytes
Are you using Tnt Components? Make sure your form is a subclass of
TntForm - that *should* work.
Re: BCB 5: Asian Characters on VCL Components?
#34
Author: epearson
Date: Thu, 09 Aug 2007 14:51
23 lines
2302 bytes
On Aug 3, 8:47 am, Ilan <ilanaz...@gmail.com> wrote:
> Are you using Tnt Components? Make sure your form is a subclass of
> TntForm - that *should* work.

Thanks for answering.  I don't have Tnt Components, I'm trying to do
this with just the standard VCL components.  Is this not possible?

I looked for Tnt components, and didn't find much information.  They
don't even mention C++Bulder 5.  Is it worth a try?  If my forms have
to be a subclass of TntForm, does that mean I have to start from
scratch?

I tried installing the trial version of TsiLang Components, but got
this message:

"Can't load package c:\Program Files\SiComponents
\CBuilder5\TsiLang_CB5.bpl.  One of the libraries needed to run the
application can't be found.  Do you want to attempt to load this
package the next time a project is loaded?"

On my main development machine I hit "No" once, and subsequent removal
and re-installations of TsiLang trial version have no noticeable
effect.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads