I'm using the instructions from
http://webpy.org/cookbook/runtime-language-switch . However, I'm unable to
translate text from validators added to a form. Does anybody knows how can
I do this?
I only have to setup some language at login and then use the same language.
All works except the text from validators:
form.Validator(_("not_empty"), lambda x:len(x)>0),
returns
NameError: name '_' is not defined
Thank you
--
This message is confidential. It may also be privileged or otherwise
protected by work product immunity or other legal rules. If you have
received it by mistake please let me know by reply and then delete it from
your system; you should not copy the message or disclose its contents to
anyone.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.