On Thu, 2010-09-09 at 15:22 -0400, Chris McDonough wrote:
> On Thu, 2010-09-09 at 12:15 -0700, Douglas Cerna wrote:
> > Hello everybody.
> > 
> > I'm trying the deform demo and noticed in the Internationalization example 
> > (http://deformdemo.repoze.org/i18n/) that when I set the _LOCALE_ to 
> > russian, form controls and errors are in fact translated, but colander 
> > validation messages are not (for example I get "a" is not a number).
> 
> I'll take a look at this tonight, thanks for noticing.
> 
> 
> > 
> > I checked the colander egg and it has a 'ru' locale. Is there any way to 
> > make colander validation errors to be translated too?
> 
> It's a bug that it isn't already translated.

No, it isn't a bug.  The translation for that error message ("\"${val}\"
is not a number") doesn't exist in the russian .po file, so it uses the
default input.  All validation messages should work fine when actually
translated.

- C


_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to