 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andre Guest
|
Posted: Wed Apr 18, 2007 7:59 pm Post subject: Application translation |
|
|
Hello,
I am trying to find a simple and robust way to translate an
application I have into 2 or more languages.
I am using BCB6 to compile write it. I need to translate string in
the code units (wich can be easy using #defines) and also the string in
the objects of each form the program has.
My solution would be to initialize all fields to be translated on the
form constructor, with a define to control wich language I want.
E.g:
__fastcall TFormMy::TFormMy(TComponent* Owner)
: TForm(Owner)
{
#ifdef LANG1
Caption = "Title in LANG1";
#elif defined LANG2
Caption = "Title in LANG2";
#endif
}
But I think there may be a better way to do it, though I canīt find
it. A way to handle the resource files generated when I create the
forms... but I have no clue.
Any help, pointers or ideas appreciated.
Regards,
Andre |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|