Some CMIS providers respond with Content-Language header and localized
text, e.g., displayNames and exception messages, based on the
Accept-Language request header.
Example
-------------
OpenCMIS client with SessionParameters
org.apache.chemistry.opencmis.locale.iso3166=CH
org.apache.chemistry.opencmis.locale.iso639=de
sends 'Accept-Language: de-CH'
Response:
Accept-Language: de
...
<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isLatestVersion</cmis:id>
<cmis:displayName>Ist aktuelle Version</cmis:displayName>
I don't see LOCALE_VARIANT on
http://chemistry.apache.org/java/developing/dev-session-parameters.html
On Tue, Feb 28, 2012 at 3:27 PM, Jeff Potts <[email protected]> wrote:
> What is the purpose of the locale SessionParameters in OpenCMIS?
>
> // Session locale.
> parameter.put(SessionParameter.LOCALE_ISO3166_COUNTRY, "");
> parameter.put(SessionParameter.LOCALE_ISO639_LANGUAGE, "en");
> parameter.put(SessionParameter.LOCALE_VARIANT, "US");
> I am getting questions about them from users who think that they are
> related to the underlying repo's multilingual capability (such as
> Alfresco's cm:mlContainer and cm:mlChild).
>
> I couldn't find anything significant on how they are used on our
> documentation pages.
>
> Jeff