Hi,
I'm actually not trying to use it directly- I'm trying to convert a lazyT
object (which is passed as email message text to make a reset password link
by gluon/tools.py line 3637 in latest release) to a string bc I have an
outside library (boto3) that expects a parameter (text of an email message)
as a string.
On Thursday, February 8, 2018 at 2:44:12 PM UTC-7, Leonel Câmara wrote:
>
> Why are you trying to use lazyT directly? If you want to do that you need
> to build the lazyT class with a translator object. Something like:
>
> abc = languages.lazyT("abc",
> languages.translator('path_to_language_files', 'en'))
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.