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
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
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
3 matches
Mail list logo