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 

stringtable

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





PostPosted: Mon Jun 13, 2005 6:46 am    Post subject: stringtable Reply with quote



Hello,

I would like to make a string table with dutch strings and english strings.
How do I make my program use the right language depending on the users loacl
settings?

Can anybody tell me?

Thanks in advance.

Mart.


Back to top
Liz Albin
Guest





PostPosted: Tue Jun 14, 2005 5:48 pm    Post subject: Re: stringtable Reply with quote



On Mon, 13 Jun 2005 08:46:49 +0200, Matt wrote:

Quote:
I would like to make a string table with dutch strings and english strings.
How do I make my program use the right language depending on the users loacl
settings?

Is this a homework problem?

at any rate the general way would be

- create a 2-dim table where one set of elements is english, the other
dutch (a vector of vectors perhaps)
- check the locale and set the indicator (e.g. language = 0 for english
and language = 1 for which one)
- reference Table[language][index]
--
Good luck,

liz

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) 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.