Internationalization questions

33 views
Skip to first unread message

mcamel

unread,
May 20, 2014, 9:47:05 AM5/20/14
to web...@googlegroups.com
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!

Massimo Di Pierro

unread,
May 20, 2014, 2:40:20 PM5/20/14
to web...@googlegroups.com
Please open a ticket. Is this the windows version?

mcamel

unread,
May 20, 2014, 4:02:39 PM5/20/14
to web...@googlegroups.com
It's linux version.

Ticket opened: http://code.google.com/p/web2py/issues/detail?id=1936

By the way, there's a message when you create a ticket at http://code.google.com/p/web2py/issues:

    "Issue attachment storage quota exceeded."

It seems this disable posibility to attach files. I'd wanted to open another ticket to ask for an enhancement attaching a diff file of 'es.py', because this time i wasn't able to do a pull request at github (sure my fault).
Reply all
Reply to author
Forward
0 new messages