In part 1 (link) we created a multi language supporting web application with the ZK Ajax framework. Out-of-the box it will follow the browser’s default or preferred language which is perfect assuming 1 user would always use the same desktop with the same browser. But what happens if you create an application that is used by different users on public browsers or in an office/production environment with shared work stations (web kiosk). The preference page might not be accessible, and 90% of users won’t even know how or are not very excited to change the browsers preferences to have their own language displayed. Did you try to change it before ? Firefox: Go to edit|preferences|Language choose..| select (add) you language and move it to the top. You want to change it back ? Go there again and….. This is not WEB 2.0 !
What we need is the application to change the language on the fly, and even better store it as a user preference if you use accounts.
We continue with the application from part 1.