>
> 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.
>

By default, T('Timetable') is a lazyT object, so isn't translated until 
necessary. It will be translated when serialized in the view, and it will 
also be translated when you apply any operators, such as testing for 
equality, concatenation, length, etc. So, T('Timetable') == 'Timetable'will be 
False unless the translation language is English. However, you can 
access the original untranslated message via T('Timetable').m, which will 
always be 'Timetable' (note, that is an internal implementation detail, not 
part of the public API).

Anthony 

Reply via email to