On Mon, Apr 27, 2009 at 7:06 PM, Vidul Petrov <vidul.r...@gmail.com> 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 openned http://localhost:8000/myapp/default/index in browser. 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...' in http://localhost:8000/admin/default/edit_language/myapp/languages/pt-br.py 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---