<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jan Meier schrieb:
<blockquote cite="mid200609010917.59174.jan.meier@zmnh.uni-hamburg.de"
 type="cite">
  <pre wrap="">Hi,

Am Donnerstag 31 August 2006 16:06 schrieb Christian Steinert:
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">CmsProperty represents properties as they are stored in the database.
If you want to set the locale for one request only, then you could
append the __locale=xx parameter to your URL.
        </pre>
      </blockquote>
      <pre wrap="">I know about the possibility to set the locale with __locale=xx, the
problem is that it is hard to memorize. The people who edit pages in my
OpenCms setup should create links to english content, for them it would
be a lot easier if they just have to append locale=xx to the link url.

You said that CmsProperty is not the right choice to set the locale, how
can I set the locale within my jsp-code?
      </pre>
    </blockquote>
    <pre wrap="">I would like to understand how your JSP would know which locale should be
used for a given request. Do you implement accept-language parsing or is
the language somehow related to the url?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The language should be set in the Query-String, for 
example /index.html?lang=de

So that I can write:

String lang = request.getParameter("lang");

if (lang != null) 
        if (lang.equals("de")) {
                // here should the locale be set
        }

Regards 

Jan
  </pre>
</blockquote>
But then i really don't understand it.<br>
If you can append lang=xx to the URL, why is it so much different to
append __locale=xx?<br>
A normal user will not append any of these parameters by hand, anyway.<br>
<br>
Christian<br>
</body>
</html>