ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Localization with own translation table

memaster
4 Dec 2008 17:36:42 GMT
4 Dec 2008 17:36:42 GMT

Hallo
I'm searching for a way to localize my web application based on an existing translation table.

1. Is it possible to write my one function that is can access by ${l('Hello')}? And how does this work?

2. How can I fine out the current language setting when "px_preferred_locale" is not set?

Thanks in advance

RyanWu
5 Dec 2008 04:11:59 GMT
5 Dec 2008 04:11:59 GMT

you can see I18N Implementation in ZK

memaster
5 Dec 2008 08:43:17 GMT
5 Dec 2008 08:43:17 GMT

That are the standard methods but can I customize them.

memaster
5 Dec 2008 14:39:25 GMT
5 Dec 2008 14:39:25 GMT

I found something for Q1: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html

robbiechengTop Contributor
22 Dec 2008 04:29:01 GMT
22 Dec 2008 04:29:01 GMT

HI martin,

there is a method getLocale of javax.servlet.ServletRequest.
please refer to http://www.zkoss.org/doc/devguide/ch14s01.html

/robbie