On Fri, 2004-05-14 at 15:26, Derek Hohls wrote:
> Hi
> 
> I'd appreciate some help setting up a form definition such that the
> labels that appear on the form are translated based on context.
> 
> I *assume* its something like:
> 
> In the Form:
> 
> <wd:label><i18n:text i18n:catalogue="forms"
> i18n:key="lbl_name">Name</i18n:text></wd:label>
> 
> Catalog File (say: FormLabels.xml) in a "message" subdirectory:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <catalogue xml:lang="it_IT">
>    <message key="lbl_name">Naam</message>
>    <message key="title">Wat is jou naam?</message> 
> </catalogue>
> 
> Sitemap:
> 
>   <catalogues default="woody">
>     <catalogue id="woody" name="WoodyMessages" location="messages"/>
>     <catalogue id="forms" name="FormLabels"    location="messages"/>
>   </catalogues>
<snip/>

(unrelated to your problem)

I wouldn't use the id "forms" for your own messages, as that is what
cforms uses.

In fact, I wouldn't use a catalogue id on your i18n:text tags at all.
Just make your custom catalog the default.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


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

Reply via email to