subject=str(T('Lazy subjects')) did it.
what's useful is that I can use subject=str(T(subject)) and bury this
statement inside my email() wrapper so that different calling code can
use (or not use) T appropriately.
This was an awkward gotcha for me. Any place that this could be
documented? Happy to add it if you point in the right direction.
C
On Jun 10, 10:50 pm, mdipierro <[email protected]> wrote:
> If you run the code locally (whithout GAE) and click on [admin]/
> [Languages]/[update languages] the string "Lazy subjects" will be
> added to the the language files.
>
> The problem may be that you need:
>
> subject=str(T('Lazy subjects'))
>
> Massimo
>
> On Jun 10, 3:27 pm, Carl <[email protected]> wrote:
>
>
>
> > I am using web2py on GAE.
>
> > I am sending emails using GAE. I'd delimited the subject line with T
> > ( ... ) and, you guessed it, GAE didn't like it at all.
>
> > How can I have the subject string translated *before* the call to
> > GAE's platform?
>
> > example code:
>
> > bSuccess = mail.send(to=to,subject=T('Lazy subjects'),message=message)
>
> > Carl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---