java - How do I get my application to inherit the language a user selects in the install4j installer? -


i've created multi-language installer, using install4j. screens of installer reflect selected language, , language .jar files being created , put folder in installation directory. i'm having trouble bridging gap between installer , application far language selection goes.

in application, call

string language = (string)variables.getinstallervariable("sys.languageid") 

to language selected in installer. set default locale, call

locale.setdefault(new locale(language)); 

the variables class above in jar file resources/i4jruntime.jar, use jar file compilation, no distribute it, automatically on class path.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -