Messages in flash have uncorrect translate, like on picture 1.
db.py
if auth.user_id is not None:
if auth.user.language is not None:
if auth.user.language == 1:
T.force('en')
elif auth.user.language == 2:
T.force('ru')
else:
T.force('ru')
else:
T.force('ru')
auth.settings.extra_fields['auth_user']= [Field('language','integer',label=T
('Language'))]
auth.define_tables(username=False, signature=False)
Now if I open profile I see field language, like on picture 2. I created
table 'LANGUAGES' with 'id' and 'NAME' and foreign key in table
'AUTH_USER'. How can I change field input on select with languages names?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/daa27991-0518-4d2b-9240-15e540aacbeb%40googlegroups.com.