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!

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to