cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Internationalisation for Woody forms' labels?
Date Fri, 14 May 2004 13:26:07 GMT

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"

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> 


  <catalogues default="woody">
    <catalogue id="woody" name="WoodyMessages" location="messages"/>
    <catalogue id="forms" name="FormLabels"    location="messages"/>

And in the pipeline for the form:

    <map:match pattern="form-display">
      <map:generate src="forms/form_template.xml"/>
      <map:transform type="woody"/>      
      <map:transform type="i18n"/> <!-- translates form messages and
codes -->  
      <map:transform src="resources/woody-samples-styling.xsl"/>

But this does not work when I append the "?locale=it-IT" parameter to
call the form
display from the flow script - what I am I missing??  And is there an
easier way to
do the above - bearing in mind I may have to add more languages later?


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message