I am also wondering the same....

On Mon, Dec 26, 2011 at 9:32 AM, Mathias Van Daele <
[email protected]> wrote:

> Hello,
>
> As a newbie, I am playing a bit with web2py internationalisation.
>
> I have 2 questions :
>
> 1.How can I translate table field names ? (show in a form)
> 2.Is there some kind of a function that I can use to translate content
> from a table ?
>
> This a my very simple data model :
>
> db.py
>
> T.set_current_languages('en','en-en')
> if request.vars._language: session._language=request.vars._language
> if session._language: T.force(session._language)
>
> db.define_table('person',
>    Field('name_father'),
>    Field('name_mother'),
>    Field('size',notnull=True))
>
> db.define_table('size',
>    Field('name',notnull=True))
>
> db.person.size.requires=IS_IN_DB(db,'size.name')
>
>
>
> Concerning question 1 : How can I translate
> "name_father","name_mother",... in a form from this table ?
>
> Concerning question 2 : Suppose table "size" contains some values like
> "big","small"...
> I am looking for a function to get these values translated too.
>
> Thanks in advance
>
> Mathias




-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

Reply via email to