Hi all, I was evaluating the internationalization features in NB. It works a bit like resource files that are linked fix into the jar file. For this approach is there are way to change language during runtime ? or better.. is there a small framework to read the text (labels,..) from an outside source (DB,XML file,.) ? That also makes easier for 3rd parties to translate the GUI without touching code. Of course can implement by myself, but why reinvent again ? Thanks Sven
As far as I know you can't change the language at runtine in NB. I think you even have to recompile.
The "pure-Java" way is to use the ResourceBundle classes with property files. (See i18n which means internationalization in google).
posted 11 years ago
when you create multiple resource files for the various language you want to use, you can change the language during start with VM parameter "-Dcountry - Dlanguage". think it also reads the equivalent settings from the OS. but you need to compile it into one file. cheers