0

How do you create a multilingual program?

I want to write a program with more than one possible output language (so that the user can choose the preferred language). Do you have a big look-up table and code like this: print (Table.getText(GREETINGS, ENGLISH)); or how is it done?

7th Jun 2017, 1:37 PM
merkrafter
2 Respostas
+ 2
The better method I think is to store text on a file, and create one file per language. You also can some kind of data structure as you suggest. Which programming language are you using?
7th Jun 2017, 2:12 PM
Maria Zheng
Maria Zheng - avatar
+ 1
That is a nice idea, thank you. :)) I am using Java, but this problem is a general one, I think.
7th Jun 2017, 9:36 PM
merkrafter