[EMAIL PROTECTED] wrote:
Mind you that it is "Wat is jouw naam?"

If ya need help with Dutch... no problem...

uhuh, better brush up your south-african then :-) (looking at derek's mail address...)

Derek,

at first glance I think you are missing a "locale" parameter to the i18n transformer...

<map:parameter name="locale" value="{request-param:locale}" />

-marc=

-----Original Message-----
From: Derek Hohls [mailto:[EMAIL PROTECTED]
Sent: 14mm2004 15:26
To: [EMAIL PROTECTED]
Subject: Internationalisation for Woody forms' labels?


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>

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"/>
<map:serialize/> </map:match>


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?

Thanks
Derek



-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]

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



Reply via email to