[web2py:19743] Setting default language

2009-04-14 Thread CK Ng
I've created a simple appliance, and it needs to be in Chinese as default language, En as a fall back. Setting it using browser is not ideal as users are multi-lingual and probably accessing from public computer. I've tried putting this into the controller but to no avail. def index(): request

[web2py:19805] Re: Setting default language

2009-04-14 Thread CK Ng
Thanks, that solved the first problem On Apr 14, 9:48 pm, mdipierro wrote: > T.force('en-zh') > Additional Q: - Could we use T() inside the template? Or we can only pass it in as dict? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:19807] Re: Setting default language

2009-04-15 Thread CK Ng
Is it possible to T.force('en-zh') for SQLFORM label? def adduser(): form = SQLFORM(db.user) return dict(form=form) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to th