Thanks for your reply, Sasa! I did what you described and looks like an 
acceptable solution if I don't manage to get FormEncode translations to 
work.

Cheers,
Emanuel

sajo wrote:
> 
> Hi,
> I had a similar problem: used just a few validators that could cause
> very few error messages. I've added the messages in
> i18n/project.pot as standard messages
> 
> msgid "Please enter a value"
> msgstr ""
> 
> then updated dictionary,  with
> 
> python setup.py update_catalog
> 
> translated messages
> 
> msgid "Please enter a value"
> msgstr "Por favor ingrese un valor"
> 
> 
> and recompiled the dict with
> 
> python setup.py compile_catalog
> 
> 
> Formencode has it's own translations, so it would be nice to use them,
> however, as I mentioned I had very few messages, so this seemed
> faster ;)
> 
> Cheers,
> Sasa
> 
> On Jun 5, 9:10 pm, Emanuel Sartor
> <[email protected]> wrote:
>> Hi all,
>>
>> I'm fairly new to Pylons and I've been developing a CRUD application with
>> it for the past two weeks.
>>
>> I'm using ToscaWidgets and tw.forms to build the add and edit forms. I
>> added a NotEmpty validator to one field in a given form. The field
>> declaration looks like this:
>>
>> twf.TextField('first_name', label_text='Nombre',
>> validator=twf.validators.NotEmpty, size=30),
>>
>> The application that I'm developing must have the UI fully in Spanish. So
>> I set "lang = es" in the development.ini file and I was expecting this to
>> make the validation error messages to show in Spanish. However they are
>> still shown in English. Any idea on how can I make the validators
>> messages to show in Spanish?
>>
>> BTW, the message that I'm getting reads 'Please enter a value', which
>> looks localized in FormEncode.
>>
>> Thanks in advance for any help!
>>
>> Emanuel
>>
>> PS: Sorry if this message comes twice, I've sent one before but looks I
>> was not subscribed and it didn't get through.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to