Yes there is an issue. I think it is fixed in trunk now, together with
lots of improvements I'll talk about later.

Massimo

On 27 Apr, 17:36, Vidul Petrov <[email protected]> wrote:
> The "problem" was fixed like this:
>
> T.current_languages=['en','en-en']
> T.force(session.language or 'en-en')
>
> were put before the translated strings (at the very beginning of the
> model).
>
> Thank you for the help.
>
> On Apr 28, 1:32 am, Vidul Petrov <[email protected]> wrote:
>
> > Would you tell me how and where you implemented the T object and its
> > force method?
> > Thank you.
>
> > On Apr 28, 1:16 am, Álvaro Justen [Turicas] <[email protected]>
> > wrote:
>
> > > On Mon, Apr 27, 2009 at 7:06 PM, Vidul Petrov <[email protected]> 
> > > wrote:
> > > > Thank you, Álvaro. The problem is still there, I tried with the latest
> > > > (revision 854) version ...
>
> > > > Could it be wrong usage of T operator in the model?
>
> > > I created a new app (myapp) in a 'fresh' downloaded version of web2py
> > > from Google's SVN (rev 854).
>
> > > So I added to db.py:
>
> > > print T('Testing...')
>
> > > And opennedhttp://localhost:8000/myapp/default/indexinbrowser. So
> > > that string "Testing..." was printed in terminal that I run web2py
> > > (with python web2py.py -a my-admin-pass).
> > > So, I found an entry for 'Testing...' 
> > > inhttp://localhost:8000/admin/default/edit_language/myapp/languages/pt-...
> > > then translated it to "Testando..." and reloaded myapp/default/index -
> > > finally, "Testando..." was printed in terminal.
> > > So, I think T() is OK in models.
>
> > > --
> > >  Álvaro Justen
> > >  Peta5 - Telecomunicações e Software Livre
> > >  21 3021-6001 / 9898-0141
> > >  http://www.peta5.com.br/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to