Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by ChristianKoeberl: http://wiki.apache.org/tapestry/Tapestry5HowToChangeLocale New page: Tapestry stores the locale of the current user in the !ThreadLocale service. This locale is either determined by the HTTP header "Accept-Language" or the cookie "org.apache.tapestry.locale" (both sent by the browser). The cookie has precedence. For changing the locale you have to use the !PersistentLocale service and (re-)set the locale. Here is an example with an !ActionLink with the id "changeLocale" (the language comes as the context): {{{ @Inject private PersistentLocale persistentLocale; public void onActionFromChangeLocale(String language) { persistentLocale.set(new Locale(language)); } }}} See also [http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html T5 Localization Guide] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
