*web3py/applications/_scaffold/controllers.py*
def index():
    *T**.select('jp')*
    msg = T('Hello World from {name}')
    return dict(message=msg.format(name=request.app_name))

learn new behavior in compare with web2py T() 
1. in web2py when select new language that is not covered yet (i.e. no file 
in languages/jp.py) web2py will create the file languages/jp.py for you, 
while in web3py isn't created automatically, must create the file manually 
translations/jp.json
2. in web3py let say already created the language file, for update the 
content not realtime take effect, must stop and start the server, while in 
web2py, no need to restart the server to take an effect for updated the 
languages file.

best regards,
stifan

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to