You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gunter D'Hondt <gu...@sofico.be> on 2004/11/25 09:06:46 UTC

Re: CForms: Not able to change general.field-required message

are you sure there isn't another i18n-msg catalogue (maybe listed in one 
of the parent sitemaps)
is caching on? maybe restart tomcat or jetty or whatever...
Gunter




<mo...@wipro.com> 
24-11-2004 16:33
Please respond to
users@cocoon.apache.org


To
<us...@cocoon.apache.org>
cc

Subject
CForms: Not able to change general.field-required  message






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>
 
 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> 
 
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> 
 

Is there something that we are missing? 
Can anyone throw some pointers on this issue?
 
Thanks in advance.
 
Regards,
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 
Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.