cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <cromo...@gmx.net>
Subject Re: i18n and Submit Buttons
Date Mon, 29 Dec 2003 18:48:18 GMT
You must transform your doc with i18n before woody transforms it. In 
this case you can do this:

<input type="submit" value="How Do I i18n This?" i18n:attr="value"/>

And the value of "value" is the key in the message catalogoue, like:

...
<message key="How Do I i18n This?">Translated value</message>
...

Regards
Stephan

Brian McCallister wrote:

> I am using FlowScript + Woody + i18n transformer and cannot figure out 
> how to internationalize submit button labels as it is an attribute on 
> the submit element in the template:
>
> <html
>     xmlns:wt="http://apache.org/cocoon/woody/template/1.0"
>     xmlns:wi="http://apache.org/cocoon/woody/instance/1.0"
>     xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
>     <head>
>         <title><i18n:text>SetAwayMessage.title</i18n:text></title>
>     </head>
>     <body>
>         <h1><i18n:text>SetAwayMessage.title</i18n:text></h1>
>         <wt:form-template action="#{$continuation/id}.continue" 
> method="POST">
>             <input type="submit" value="How Do I i18n This?"/>
>             <br />
>             <i18n:text><wt:widget-label id="subject"/></i18n:text>
>             <wt:widget id="subject"/>
>             <br />
>             <i18n:text><wt:widget-label id="body"/></i18n:text>
>             <wt:widget id="body">
>                 <wi:styling type="textarea" cols="50" rows="10"/>
>             </wt:widget>
>         </wt:form-template>
>     </body>
> </html>
>
> Any pointers?
>
> -Brian
>
>
>
> ---------------------------------------------------------------------
> 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