In my view, if you want to translate values in database, you should arrange for translations to also be in db. You can just use T but you do not want translation files to increase when the db grows else everything can become slow.
On Jan 28, 2:41 pm, weheh <richard_gor...@verizon.net> wrote: > Hi Alexandre, yes I understand that, but it's not really the root of > my question. The question is whether to create special fields in my > records for holding the translated text, or use the built-in > translation mechanism of web2py? > > On Jan 28, 9:57 am, Alexandre Andrade <alexandrema...@gmail.com> > wrote: > > > everything is passed by T('anything') go to languages/my_ln.py (like > > en_us.py). > > > So you have to manually translate the strings on that file. > > > 2010/1/28 weheh <richard_gor...@verizon.net> > > > > I haven't really worked with translation, yet. But I'm going to be > > > getting into it in a big way. I have > > > > db.define_table('content',Field('title'),Field('body')) > > > > I want to enter title and body in English, but then translate to other > > > languages. > > > Let's say I do this: > > > > rows=db(db.content.id>0).select() > > > for row in rows: > > > trans_title=T(row.title) > > > trans_body=T(row.body) > > > > Will something like that work? > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group. > > > To post to this group, send email to web...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/web2py?hl=en. > > > -- > > Atenciosamente > > > -- > > ========================= > > Alexandre Andrade > > Hipercenter.com- Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.