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.
BR,
Jason
On 07/05/2012 12:23 PM, Annet wrote:
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) which I translate to Lesrooster, will I be
able to compare it to a field called 'Timetable' in a view or has
Timetable been translated to Lesrooster before.
Kind regards,
Annet