Re: Multilanguage program
Tuesday, March 19, 2002 06:19 AM
It is not clear from your query as what type of application you are developing
1) You would have a property file named resourcebundle wherein you would place all the String values. Suppose you are displaying in your application
" Enter your loginID" You have to specify in the resourcebundle.property file as name=value pair
loginIDprompt=Enter your loginID
2) In your application where you are actually want to display this particular text instead of actually specifying the string "Enter your loginID" you have to use what name you have specified in the resource bundle i.e. loginIDprompt. To achieve this you have to use the java.util API.
3) To display in different languages you need to have different font files in your system. And not only that you need to have different resourcebundle.property files for different locales. And the name would remain same but the value will be in any other language you might want to display in. For this you have to hire a translator if you doesnt know the other language.
This solution is not only for web based application but it will work for other client based applications also.
For more information go through Internationalization book published by O'reilly.