What I've failed to mention is that i18n messages from "other" work just
fine! All my widget labels and <i18n:text> tagged items translate just fine!

Only the "internal" items such as the upload widget "Browse" button and
"help/validation" items are NOT being translated. Both the FormsMessages.xml
and OtherMessages.xml (and _xx translations) are all in the same "messages"
directory - so I would *think* that if "other" works, "forms" would also
work...
This is really all about getting i18n to work for the "validation" messages
with keys such as "general.field-required" (which, by the way, do not get
translated in the cocoon samples either - only the key appears in the
validation pop-up window - not the translated text).

-----Original Message-----
From: Ellis Pritchard [
Sent: Tuesday, February 15, 2005 3:08 AM
To: [email protected]; [EMAIL PROTECTED]
Subject: Re: i18n transformer: how to translate cocoon forms messages


depub2 wrote:

>My sitemap excerpt is below, but it does not appear to be working:
>
>      <map:transformer name="i18n"
>src="org.apache.cocoon.transformation.I18nTransformer">
>        <catalogues default="other">
>          <catalogue id="other" name="OtherMessages" location="messages"/>
>          <catalogue id="forms" name="FormsMessages" location="messages"/>
>          <location>messages</location>
>        </catalogues>
>        <cache-at-startup>false</cache-at-startup>
>      </map:transformer>
>
>
>I've also tried setting default="forms" - no success. What am I missing??
>David
>
>
Make sure that the <catalogue> element's 'location' attribute is a
sitemap relative path to a directory containing your
internationalization files; the 'name' attribute of the catalogue
element specifies the base filename for the catalogue files in the
'location' directory..

For your example there should be a messages/FormsMessages.xml file, and
messages/FormsMessages_de.xml etc. for other languages.

See
http://cocoon.apache.org/2.1/userdocs/transformers/i18n-transformer.html#i18
n%3Atext

Ellis.

P.S. I'm not sure that the <location> element should be there...?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to