A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other JSE/JEE APIs
How to get labels updated when language changed
Joined: Oct 13, 2011
Oct 31, 2011 07:56:42
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:
subject: How to get labels updated when language changed
Internationalization: variable language and validation
Override request headers
struts internationalization problem
Country to Currency Mapping
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014