[opencms-dev] internationalise JSP files
dliliedahl at efoundry.com
Tue Dec 6 15:04:29 CET 2005
I posted the 6.x velocity module a little while back. You should be able to
find it by searching the archives.
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Joe Desbonnet
Sent: Tuesday, December 06, 2005 6:48 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] internationalise JSP files
Using property files sounds like a good approach if using JSP. If you
plan on changing them frequently and don't like restarting the
application, you can periodically check the last modified date of the
file and reload them if it has changed.
I've used the Velocity templating engine for a job where
internationalization was important. Under my templates directory I had
a directory 'en' for english, 'fr' for french etc. Common include
files (eg CSS, JS files) were located in a common directory and
included by the velocity templates. In my software I would reference
"templates/" + lang + "/mytemplate.vm"
This approach does allow more flexibility, but can be harder to
synchronize changes to the UI across the various languages.
There is a Velocity module for OpenCms 5. I don't know if it was
updated to work with version 6.
On 12/6/05, Matthias Neher <Matthias.Neher at doubleslash.de> wrote:
> how do you internationalise your jsp files? Do you use resource bundles,
> is there a better solution?
> The background of this question is, that it is not very comfortable if you
> have to change something in the resource bundles. The bundles are located
> the classes' folder of the module. So a "normal" editor has no access to
> bundles. The other point is that you have to restart the OpenCms
> every time you changed the bundle files.
> best regards,
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
More information about the opencms-dev