You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
I need change locale in order to implement internationalization (i18n), but it no work, JSF always take browser locale. Any way to do it?
Locale LOCALE = Locale("es", "ES");
ResourceBundle.clearCache();
ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader());
ResourceBundle bundle = BResourceBundle.getBundle(DBResourceBundle.class.getName());
//set locale not work on JSF 2, it take Locale from web browser
// FacesContext.getCurrentInstance().getViewRoot().setLocale(LOCALE);
This repository, as I understand, is about the specification and not issues with implementations. You might want to re-ask this over there on Stackoverflow.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I need change locale in order to implement internationalization (i18n), but it no work, JSF always take browser locale. Any way to do it?
Locale LOCALE = Locale("es", "ES");
ResourceBundle.clearCache();
ResourceBundle.clearCache(Thread.currentThread().getContextClassLoader());
ResourceBundle bundle = BResourceBundle.getBundle(DBResourceBundle.class.getName());
//set locale not work on JSF 2, it take Locale from web browser
// FacesContext.getCurrentInstance().getViewRoot().setLocale(LOCALE);
--------faces-config.xml------
org.altamira.ada.core.i18n.handler.DBResourceBundle
bundle
The text was updated successfully, but these errors were encountered: