cocoon-dev mailing list archives

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

> [... 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"
the
> 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
package
> 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"
 constraint-set="user-input">
     <i18n:translate>
        <i18n:text>this parameter must be at least {0}</i18n:text>
        <i18n:param><xsp-formval:get-attribute
 parameter="input" name="min"/></i18n:param>
     </i18n:translate>
 </xsp-formval:descriptor>

>...
> Comments?
>
> Neeme

Regards,
    Konstantin Piroumian.

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


Mime
View raw message