Hello,
It is suppossed, T.is_writable=False, disables automatic writing to languages files.
This doesn't seem to work for me (note i do not want to turn off translation completely with T.force(None)).
In a controller (tested with Version 2.9.5-trunk+timestamp.2014.05.09.15.41.38):
T.is_writable = False
def index():
db = DAL('sqlite:memory:')
db.define_table('event',
Field('date_time', 'datetime')
)
return dict(html=SQLFORM.grid(db.event, user_signature=False))
After loading, this entry is automatically added to my language file (es.py):
'Date Time': 'Date Time',
Sometimes do not appear inmediately, don't know why, but it should not happen anyway... I'm doing something wrong?.
Besides, this example leads me to another question:
It seems automatic translation of field names has been added in a past release. This is nice almost all the times, but not always. Can this feature be disabled without disabling whole translation?.
Regards!