AW: [opencms-dev] getting the locale of a page within <% %>

Kai Schliemann k.schliemann at comundus.com
Fri Mar 17 13:16:50 CET 2006


Hi Chris,

assuming that you have a "de" and "en" folder where the property "locale" is
set to either "de" or "en", you just have to read the property "locale" with

cms.property("locale", "search");

that's it.


Mit freundlichen Gru?en

i.A. Kai Schliemann
________________________________________________________________

Dipl.-Wirt.Ing. (FH)
Kai Schliemann


IT-Berater

comundus GmbH
Schuttelgrabenring 3, 71332 Waiblingen

Telefon  +49 (0)71 51-5 00 28-20
Internet www.comundus.com

IT EXCELLENCE by comundus.
________________________________________________________________






> -----Ursprungliche Nachricht-----
> Von: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Christoph P.
> Kukulies
> Gesendet: Freitag, 17. Marz 2006 12:59
> An: opencms-dev at opencms.org
> Betreff: [opencms-dev] getting the locale of a page within <% %>
>
>
> I'm in need for a code snippet.
>
> My navigation needs to display different images containing
> names in german resp. english. I need to decide whether the
> locale is String "de" or String "en" and build the
> image name src="/galleries/pics/"<%=locale%>_navicon"
> corresponding to the locale of the page.
>
> Do I use a bean and which one and what would the
> preparing code to obtain the locale?
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list