Results 1 to 4 of 4
Thread: Change language in java
- 04-23-2012, 04:29 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 20
- Rep Power
- 0
- 04-23-2012, 04:32 PM #2
Re: Change language in java
Are you asking how to implement different languages in your program?
You'll have to keep track of what should be displayed in each component for each language, then switch what's being displayed when the language changes. There's no magic "change language" function.How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 04-23-2012, 04:41 PM #3
Re: Change language in java
Look at the ResourceBundle class.
If you don't understand my response, don't ignore it, ask a question.
- 04-23-2012, 11:20 PM #4
Re: Change language in java
It sounds like you're trying to do internationalization, which is often abbreviated i18n. Searching for those terms might find you some helpful info.
One way of doing it is to replace every literal string in your program with a call to get() on a Map<String, String>. When the program starts, it fills that Map with Strings appropriate to the user's locale. ("Locale" is another key word you might want to search for.)Get in the habit of using standard Java naming conventions!
Similar Threads
-
how to change whole project in another language base on locale?
By krunalpatel1410 in forum AWT / SwingReplies: 3Last Post: 09-20-2010, 08:24 AM -
Is java a top language to learn?
By insanepenguin in forum New To JavaReplies: 26Last Post: 01-24-2010, 10:16 PM -
Java is an OOP language.
By mysourha in forum New To JavaReplies: 3Last Post: 01-14-2010, 10:15 AM -
How to do to change from a language to an other language?
By Ravanelly in forum New To JavaReplies: 5Last Post: 08-25-2009, 09:41 AM -
Is JAVA the right language?
By EDENO in forum New To JavaReplies: 3Last Post: 08-08-2008, 12:29 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks