pombreda / formalchemy

Automatically exported from code.google.com/p/formalchemy
MIT License
0 stars 0 forks source link

i18 not working correctly with custom validators #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. creata custom validator with some messages dict by your own messages
i used 'invalid_name':_('you cannot use %(username)s as login')
2. when keeping the user lang in session  the this string is not
translated, and using lazy_ugettext gives and exception saying this is not
a string (sure lazy gives lazy object) but str(lazy_ugettext('string'))
does not work as well.

What is the expected output? What do you see instead?
localized string and i got original string.

What version of the product are you using? On what operating system?
ubuntu 32bit formalchemy 1.2

Please provide any additional information below.

Original issue reported on code.google.com by marcin...@gmail.com on 10 Aug 2009 at 7:22

GoogleCodeExporter commented 9 years ago
Yeah I know that fa.i18n sucks...

I'm not a gettext guru. Any help are welcome on this.

Original comment by gael.pas...@gmail.com on 27 Aug 2009 at 10:11