You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 7 Members of 4087 |
| Forum: Seam Users |
03. Jul 2008, 11:39 CET | Link |
It happens that I am asked to create an internationalized Web application. Apart from i18n messages, I have an additional requirement: localized views based on locale.
So, as an example, I may have a view for /home.seam that shows the main page similar to that of a Yahoo! home page. Then, depending on the locale of the user, a localized home page will be shown with layout and content that is customized based on the locale, and they can be entirely different. However, say for more standard views such as login, as well as views that belong more to the Web application, I can use a localized message approach for those views. So I would like to have both approaches available to me.
Except setting separate views such as /home_en.seam and /home_zh.seam and so on, is there any other ways I can try? Because I would like to provide users with a language switcher that they can switch the language version on all the views, without first redirecting back to home.
What I am thinking about is something along the lines of content negotiation
in Apache. How can I best implement this on a seam-based platform? Thank you for sharing any insights.