Thanks for catching that. Please open a ticket and I will fix it asap.

On Monday, 30 September 2019 12:34:57 UTC-7, isi_jca wrote:
>
> Hi! 
>
> Anybody have idea why py4web doesn't translate  the labels?
>
> Best regards
>
>
> El domingo, 22 de septiembre de 2019, 22:02:16 (UTC-3), isi_jca escribió:
>>
>> Hi!!!
>>
>> In models.py, I have this table
>>
>> db.define_table('tempresa',
>> Field('descripcion','string',length=50,label = T('Enterprise')),
>> Field('email','string',length=50, label = T('Email')),
>> Field('phone','string',length=50, label = T('Phone')),
>> Field('estado','reference trestado',label = T('State')),migrate=False)
>>
>> When I use grid get this string:
>>
>> { "__class__": "lazyT", "kwargs": {}, "text": "Enterprise", "translator": 
>> { "__class__": "method" } } 
>> { "__class__": "lazyT", "kwargs": {}, "text": "Email", "translator": { 
>> "__class__": "method" } } 
>> { "__class__": "lazyT", "kwargs": {}, "text": "Phone", "translator": { 
>> "__class__": "method" } } 
>> { "__class__": "lazyT", "kwargs": {}, "text": "State", "translator": { 
>> "__class__": "method" } }
>>
>>
>> In init.py my script is this.
>>
>> # exposed as /examples/grid
>> @action('empresa_grid', method=['GET','POST'])
>> @action.uses('empresa_grid.html',db, session,T)
>> def empresa_grid():
>>     Titulo = T('Enterprise')
>>     grid=publisher.grid(db.tempresa)
>>     return locals() 
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7bb90488-b019-459c-8836-5d5ec22df0de%40googlegroups.com.

Reply via email to