Board index » cppbuilder » stringtable

stringtable


2005-06-13 02:46:49 PM
cppbuilder10
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.
 
 

Re:stringtable

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