Hi,
We are trying to change the alert message for �required� fields from general.field-required to a meaningful message in Cocoon forms.
We followed the woody samples to achieve this, the attempt was unsuccessful.
We added the following line in the xml file that would be read by the i18n transformer.
<?xml version="1.0"
encoding="utf-8"?>
<catalogue xml:lang="en_US">
<message
key="general.field-required">This field is required.</message>
</catalogue>
We have the following code snippet in sitemap:
-
<catalogues
default="messages">
<catalogue id="messages" name="messages" location="translations"/>
</catalogues>
<untranslated-text>untranslated</untranslated-text>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
<catalogue id="messages" name="messages" location="translations"/>
</catalogues>
<untranslated-text>untranslated</untranslated-text>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
We have other xml files for the different
languages like French and German. Other user defined keys in those
languages get translated appropriately. But the general.field-required does not
get translated to the appropriate message.
For french: -
<?xml version="1.0"
encoding="UTF-8"?>
<catalogue xml:lang="fr">
<message key="general.field-required">Cette donn�e est obligatoire.</message>
<message key="Add">Ajouter</message>
<catalogue xml:lang="fr">
<message key="general.field-required">Cette donn�e est obligatoire.</message>
<message key="Add">Ajouter</message>
</catalogue>
For german: -
<?xml version="1.0"
encoding="UTF-8"?>
<catalogue xml:lang="de">
<message key="Account number">Kontonummer</message>
<message key="Add">Hinzuf�gen</message>
<catalogue xml:lang="de">
<message key="Account number">Kontonummer</message>
<message key="Add">Hinzuf�gen</message>
</catalogue>
Is there something that we are missing?
Can anyone throw some pointers on this issue?
Thanks in
advance.
Regards,
Moin
Moin
Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. |
