[opencms-dev] Localisation question
Alexander Kandzior
alex at opencms.org
Mon Oct 11 09:23:59 CEST 2004
Setting the locale based in the user session is not a standard feature.
You probably need to write your own locale handler for this.
See interface:
org.opencms.i18n.I_CmsLocaleHandler
Default implementation
org.opencms.i18n.CmsDefaultLocaleHandler
The locale handler used is configured in opencms-system.xml.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Robert
> Petermeier
> Sent: Thursday, October 07, 2004 10:45 AM
> To: The OpenCms mailing list
> Subject: [opencms-dev] Localisation question
>
> Hi,
>
> I am currently developing a JSP-based module for version 6.0.
> The module uses the ResourceBundle API for l10n/i18n. I am
> planning to make the language of the module selectable for
> the (web)user by providing links that the user can click on
> for every supported language.
>
> What is the best way to set the selected locale/encoding
> globally? By 'globally' I mean that the setting is accessible
> for all modules that are used during the session. Simply
> appending '__locale=...' to every subsequent request doesn't
> seem to be the best solution.
>
>
> Regards,
> Robert
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list