BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Application translation

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students)
View previous topic :: View next topic  
Author Message
Andre
Guest





PostPosted: Wed Apr 18, 2007 7:59 pm    Post subject: Application translation Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.