Re: [web2py] Re: Translate on table content ?

2016-10-05 Thread António Ramos
Thank you Leonel. 2016-10-04 11:19 GMT+01:00 Leonel Câmara : > I have solved this problem in 2 different ways. Depending on your need, > you pick one. > > Option 1 "have an extra translation table" can look something like this > > LANG = T.accepted_language if

[web2py] Re: Translate on table content ?

2016-10-04 Thread Leonel Câmara
I have solved this problem in 2 different ways. Depending on your need, you pick one. Option 1 "have an extra translation table" can look something like this LANG = T.accepted_language if T.accepted_language in SUPPORTED_LANGUAGES else 'en' db.define_table('tag', format=lambda r: db(