cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <>
Subject Re: [C2] actions, forms, etc.
Date Thu, 14 Jun 2001 16:49:10 GMT

> [... long email cut ...]
> Good start. However, here are some issues to consider:
> * i18n: The last thing I would like to do in my webapp is to "hardcode"
> error messages like below
> -----------------
>   <xsp-formval:descriptor name="descriptor.xml"
> constraint-set="user-input">
>      this parameter must be at least <xsp-formval:get-attribute
> parameter="input" name="min"/>
>   </xsp-formval:descriptor>
> -----------------
> Instead, I would like to be able to pass the parameters to some i18n
> like XMLResourceBundle in Avalon, or i18n transformer in C2 (I haven't
> looked deeper into i18n transformer yet, so I know very little about
> parameter substitution support there).

About i18n transformer: param substitution is supported. And the above task,
I think, can be easily performed in locale-sensitive manner if you change it
like this:

<xsp-formval:descriptor name="descriptor.xml"
        <i18n:text>this parameter must be at least {0}</i18n:text>
 parameter="input" name="min"/></i18n:param>

> Comments?
> Neeme

    Konstantin Piroumian.

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

View raw message