Awe so that also answers my question from a past post on how to use
translate in a custom module, that is out side the application directory.

On Fri, Mar 30, 2012 at 4:57 PM, Anthony <[email protected]> wrote:

> Massimo, I have looked at the file none of them have it.
>>
>> IE:
>> IS_URL error_message='enter a valid URL'
>> IS_HTTP_URL error_message='**enter a valid URL'
>>
>
>  The error messages are not translated when specified as an argument to
> __init__, they are translated when they are actually returned by the
> __call__ method:
>
> def __call__(self, value):
>     [validation code]
>         return (value, translate(self.error_message)
>
> Anthony
>



-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

Reply via email to