cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Fernando.Matom...@thomson.com>
Subject RE: Cannot override general.field-required
Date Thu, 16 Mar 2006 15:53:14 GMT
Yes, the resources directory is right in the directory where this
sitemap is.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@hippo.nl] 
Sent: Thursday, March 16, 2006 4:37 PM
To: users@cocoon.apache.org
Subject: RE: Cannot override general.field-required

> -----Original Message-----
> From: Fernando D. Mato Mira [mailto:matomira@acm.org]
> Sent: donderdag 16 maart 2006 14:43
> To: users@cocoon.apache.org
> Subject: Cannot override general.field-required
> 
> 
> Hi again,
> 
>   I have looked up how to override the CForms localization, 
> but it's now 
> working.
> 
> In my subsitemap I have:
> 
>     <map:transformers default="xslt">
>       <map:transformer name="i18n" 
> src="org.apache.cocoon.transformation.I18nTransformer">
>             <catalogues default="default">
>               <catalogue id="forms" name="messages">
>                 <location>resources/i18n</location>
>                 
> <location>resource://org/apache/cocoon/forms/system/i18n</location>
>               </catalogue>
>               <catalogue id="default" name="messages" 
> location="resources/i18n"/>
>             </catalogues>
>           </map:transformer>
>     </map:transformers>
> 
> 
> In resources/i18n/messages.xml I have:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <catalogue xml:lang="en">
> <message key="general.field-required">This is a required 
> field</message>
> </catalogue>
> 
> 
> But I keep on getting the untranslated key as the message.
> 

It probably can't find the folder resources/i18n from the point where
your sitemap is. 
Keep in mind that calling <location>resources/i18n</location> means it's
relative to where you are. Did you check that?


Jasha Joachimsthal

---------

Hippo
Oosteinde 11
1017 WT Amsterdam
The Netherlands
+31 (0)20 5224466 

jasha@hippo.nl
www.hippo.nl> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message