I have a unique weblog in my Roller 3.0 system configured to support
multiples languages:

Internationalization Settings/
I publish my weblog in multiple languages ... checked

And I had created 2 entries in 2 different languages: english and spanish.

But the velocity templates retrieving messages from
ApplicationResources_XX.properties, are showing randomly localized messages!

For example, the message for the key "weblogEntriesPager.single.home" shows
the value from ApplicationResources.properties. At the same time, the entry
"comments.disabled" shows the value for ApplicationResources_es.properties!

This happens both in entries created with locale english and in entries
created with locale spanish (es).

And if I type the locale as part of the url as in
"...mywebloghandle/en/entry/XXXX", that locale is totally ignored, the
entries still show the wrong behavior I just related before.

The guide http://rollerweblogger.org/wiki/Wiki.jsp?page=LocalizationGuide
only says that:
"... the locale used to display Roller application pages (editing and
administration) is determined by the user's profile locale setting."

¿How is the locale retrieved from the velocity templates when they do a
$text.get("key") ?¿how can I fix this to make the velocity templates use the
locale when specified in the url?

My config is: Roller 3.0 (from binaries), Fedora Core 5, Java 1.5.0_9 and
Tomcat 5.5.

Thanks in advance

-- 
View this message in context: 
http://www.nabble.com/Roller-3.0-locale-support-works-wrong-in-velocity-templates-tf3235252s12275.html#a8990661
Sent from the Roller - User mailing list archive at Nabble.com.

Reply via email to