You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ToyToy <to...@gmx.ch> on 2004/02/18 12:59:41 UTC

How to use i18n inside of a user defined action?

Hi,

I'm using i18n inside a xsl to translate the options of a html selector
(combo-box). The individual options are generated by a user-defined cocoon action
(in java) as i18n keys. The same action also processes the client response.
Unfortunatly the parameter with the user selected item now contains the
translated text, so I can't compare it with my i18n keys.

Is there a way to call the cocoon i18n transformator from inside of cocoon
action method? Or do you know any other solution for my problem?

thanks
ToyToy

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


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


Re: How to use i18n inside of a user defined action?

Posted by Joerg Heinicke <jo...@gmx.de>.
On 18.02.2004 12:59, ToyToy wrote:

> Hi,
> 
> I'm using i18n inside a xsl to translate the options of a html selector
> (combo-box). The individual options are generated by a user-defined cocoon action
> (in java) as i18n keys. The same action also processes the client response.
> Unfortunatly the parameter with the user selected item now contains the
> translated text, so I can't compare it with my i18n keys.

The options have a key and a value. While you should translate the value 
(= the displayed entry) you should of course not translate the key. The 
key is sent back to the server after the client made it choice. I18n 
should make no problem using it this way.

Joerg

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