[opencms-dev] Forcing locale for cms:include fails

Yves Glodt yg at mind.lu
Wed Oct 5 10:29:17 CEST 2011


Hello,

in my attempt to create a proof-of-concept of a multilanguage-website
without the needs for /en/, /de/, /fr/ folders and siblings, I tried the
following in my template:

<cms:include element='body' editable="true">
    <cms:param name="__locale">${empty cookie.lang.value ? 'en' :
cookie.lang.value}</cms:param>
</cms:include>

But it does not work as expected. The __locale parameter seems to be
ignored. I use OpenCms 7.5.4 here.

Someone else already had this problem:
http://mail.opencms.org/pipermail/opencms-dev/2008q4/030850.html

Is there a solution in the meantime?

Best regards,
Yves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111005/773c143c/attachment.htm>


More information about the opencms-dev mailing list