-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
b:dataTable doesn't use browser language #628
Comments
@NicolaIsotta I've uploaded a new version of the snapshot to Maven Central, and I've added a demo on the showcase. But I don't know how to test the feature. There used to be a Google Chrome setting allowing me to switch the default language, but it's gone :(. Do you have an idea? http://www3.bootsfaces.net/Showcase/forms/DataTable.jsf (search for Internationalization) |
@stephanrauh Into private String locale; // getter and setter
@PostConstruct
public void postConstruct() {
this.locale = FacesContext.getCurrentInstance().getViewRoot().getLocale().getLanguage();
} Then, in DataTable.xhtml, add a |
Adding the selectItem with |
Yes, if both the values are missing or null the Language is evaluated from the viewroot. Anyway, I think Firefox have the accepted-languages configuration if you need to test. |
Oh. It's an OSX problem. You can set the browser language of Chrome in Windows, but not in OSX. The Mac version always uses the system default language. Now my MacBook speaks Spanish to me, and the datatable does the same, too. Probably it would have been simpler to install Firefox :). |
As the title, I've already prepared a PR which contains two other small fixes.
The text was updated successfully, but these errors were encountered: