[opencms-dev] Localisation question
Martin Kuba
makub at ics.muni.cz
Fri Oct 8 18:41:28 CEST 2004
Thomas März wrote:
> Martin Kuba <makub at ics.muni.cz> writes:
>
>
>>The recommended way is to have one XmlPage as two "siblings"
>>in different folders, and the folders should have
>>different settings for "locale" property.
>>XmlPages then inherit the locale property from the folder.
>>So the user locale is selected by selecting the folder.
>
>
> Cheers Martin,
>
> I didn't see anything beeing used apart from the request headers to
> select the locale.
>
> Regards,
> Thomas
See
src/org/opencms/i18n/CmsDefaultLocaleHandler.java
on line 85:
defaultLocales = localeManager.getDefaultLocales(m_adminCmsObject,
resourceName);
and in src/org/opencms/i18n/CmsLocaleManager.java
line 406:
defaultNames = cms.readPropertyObject(resourceName,
I_CmsConstants.C_PROPERTY_LOCALE, true).getValue();
i.e. the locale manager reads the "locale" property for
list of locales, compares them with configured locales,
and then local handler selects the first of them.
Martin
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno Martin Kuba
Institute of Computer Science email: makub at ics.muni.cz
Masaryk University http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775
--------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2847 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041008/748981fb/attachment.bin>
More information about the opencms-dev
mailing list