-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hi Vicenzo, this may help:
Locale prefer_locale = new Locale(en);//The new Locale
session.setAttribute(org.zkoss.web.Attributes.PREFERRED_LOCALE, prefer_locale);
Clients.reloadMessages(prefer_locale);
org.zkoss.util.Locales.setThreadLocal(prefer_locale);
//Reload all components labels
LBLHola.setValue(Labels.getLabel("hola"));
LHNombre.setValue(Labels.getLabel("nombre"));
//etc.
2 | Code Tag Added |
Hi Vicenzo, this may help:
Locale prefer_locale = new Locale(en);//The new Locale
session.setAttribute(org.zkoss.web.Attributes.PREFERRED_LOCALE, prefer_locale);
Clients.reloadMessages(prefer_locale);
org.zkoss.util.Locales.setThreadLocal(prefer_locale);
//Reload all components labels
LBLHola.setValue(Labels.getLabel("hola"));
LHNombre.setValue(Labels.getLabel("nombre"));
//etc.