FYI, a chapter of Kent Tong's book touches on localization. You may
find it interesting, since he also uses locale to choose appropriate
images.
Dan
On 2/13/07, Stephane Decleire <[EMAIL PROTECTED]> wrote:
Hi,
Is there a prefered way to deal with user localization in Tapestry ? I
mean how to
In Tap4, you have access to the locale in the page with the method
getLocale(), it returns the current locale of the user. The default
locale used by tapestry is the one of the JVM thus of your system.
If you want another default locale you have to override the meta key
"org.apache.tapestry.
formatted according to the user
localization
Thanks Numa but how do you get the locale of the user ?
It seems that my application always takes the locale of my server but
not the clients locale ...
--
Stéphane Decleire
Numa Schmeder a écrit :
> Hi,
>
> You can use all standard java loc
Thanks Numa but how do you get the locale of the user ?
It seems that my application always takes the locale of my server but
not the clients locale ...
--
Stéphane Decleire
Numa Schmeder a écrit :
Hi,
You can use all standard java localization recommandation:
SimpleDateFormat
NumberFormat
Hi,
You can use all standard java localization recommandation:
SimpleDateFormat
NumberFormat etc
All localized message are stored in a global property file:
myApp_en.properties (for english messages)
OR
in a per page or per component basis in the web-inf:
myPage.properties (default)
myPag