[web2py] When does translation take place.

2012-07-05 Thread Annet
Some of my menus are generated using tables containing fields being True of False. The problem is that the table fields are in English and the menu items should be translated. I wonder whether translation happens before any comparisons being made in a view or after. So, if I have T('Timetable)

Re: [web2py] When does translation take place.

2012-07-05 Thread Jason Brower
Don't know all the details. But it's best to leave logical things outside of the translations. Otherwise you end up destroying your app when someone does the translation change. The translations can happen anywhere. They are executed as soon as you run them. So T('test') = test it is a string