I have this table

db.define_table('evento',
                Field('titolo', requires=[IS_NOT_EMPTY()]),
                Field('inizio', type='datetime'),
                Field('fine', type='datetime'),
                Field.Virtual('giorno_inizio', lambda 
row:calendar.day_name[row.evento.inizio.weekday()]),
                Field('risorsa', 'reference risorsa'),
                Field('docente', 'reference auth_user'),
                Field('materia', 'reference materia'),
                Field('studenti', 'list:reference auth_user'),
                Field('colore', default = '#8080ff'),
                
auth.signature,singular="Evento",plural="Eventi",migrate='evento.table',
                format='%(titolo)s')

This is the grid

form = SQLFORM.grid(query, args=[studente], fields=[db.evento.titolo, 
db.evento.giorno_inizio, db.evento.inizio, db.evento.fine, 
db.evento.risorsa, db.evento.materia, db.evento.docente],create=False, 
details=False, editable=False, deletable=False, searchable=False, 
maxtextlength=60, exportclasses = exportcls)

...but I see db.evento.giorno_inizio in english (like Monday, Tuesday, 
ecc.), but I want in italian? Hoe to do?
Thank you

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