Re: [web2py] Translation support in Auth Registration form

2011-09-23 Thread mingcao ma
Thx a lot

Re: [web2py] Translation support in Auth Registration form

2011-09-23 Thread Bruno Rocha
I think is it easy to do: in controllers/default.py def user(): if 'register' in request.args: db.auth_user.email.label = T('Email) db.auth_user.password.label = T('Password') db.auth_user.accept_promotion = T('Accept promotional Email?') elif 'profile' in request

[web2py] Translation support in Auth Registration form

2011-09-22 Thread mingcao ma
Hi all, I want to make my Auth's registration table's label support translation. So I add a fields in Auth "auth.settings.register_labels" Also add this in register method in tools.py: form = SQLFORM(table_user,