[opencms-dev] getting the locale of a page within <% %>
Robert Petermeier
robert2.0 at gmx.de
Fri Mar 17 13:10:28 CET 2006
Hi Christoph,
Christoph P. Kukulies wrote:
> 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"
<%= cmso.getRequestContext().getLocale().getLanguage() %>
is probably what you are looking for. 'cmso' is an instance of
CmsObject, as you might have guessed;-)
Robert
More information about the opencms-dev
mailing list