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 <[email protected]> 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 <[email protected]> > 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 <[email protected]> > > > > 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 [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<web2py%[email protected]> > > > . > > > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

