[opencms-dev] script-output depending on locale
Christian Steinert
christian_steinert at web.de
Wed Aug 2 02:36:07 CEST 2006
Jens Kreutschmann schrieb:
> Sorry,
> I have found out right now, that i have to export the module in order to
> make this work. I am not sure why, but it seems that was the problem. If
> someone can explain this to me, I would be glad.
Very simple:
Opencms uses its classloader to read your language files.
The classloader will look only in various folders of the real
filesysten, not inside of the opencms database.
So - your propertyfile gets published to the classes folder under
opencms/WEB-INF/
and only there the classloader will find it.
The reason is that they use a established JAVA mechanism (loading of
resource bundles) to read their language files. And of course general
java mechanisms cannot read the opencms database.
c.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060802/38b1cfb2/attachment.bin>
More information about the opencms-dev
mailing list