Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. 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-2015