[opencms-dev] internationalise JSP files
Joe Desbonnet
jdesbonnet at gmail.com
Tue Dec 6 12:47:50 CET 2005
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
template
"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.
Joe.
On 12/6/05, Matthias Neher <Matthias.Neher at doubleslash.de> wrote:
>
>
>
> Hello,
>
>
>
> how do you internationalise your jsp files? Do you use resource bundles, or
> 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 in
> the classes' folder of the module. So a "normal" editor has no access to the
> bundles. The other point is that you have to restart the OpenCms application
> every time you changed the bundle files.
>
>
>
>
>
> best regards,
>
>
>
> Matthias
>
>
> _______________________________________________
> 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
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list