Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of
Clojure in Action
this week in the
Other JSE/JEE APIs
How to get labels updated when language changed
posted 4 years ago
I am using the following code to create a resource bundle for specified language and country:
Locale loc = new Locale(language, country); resource = ResourceBundle.getBundle(resourceFile, loc); theLabel.setText(resource.getString(key));
The problem is, when user changes the language, the label's text does not get changed automatically, I have reset the text manually after changing language.
Does anybody have workaround for this?
I agree. Here's the link:
Internationalization: variable language and validation
Override request headers
struts internationalization problem
Country to Currency Mapping