What steps will reproduce the problem? 1. Create a new "myapp" application
In db.py insert this before the first line: T.force('pt-br')
Create the applications/myapp/languages/pt-br.py
Translate 'Welcome %s' message in pt-br.py to 'blablabla %s'
Register a new user and login. 'John', for example. What is the expected output? What do you see instead? Expected output: blablabla John
What I see: Welcome John
(at the top of the page, before 'logout' option) What version of the product are you using? On what operating system? v1.87.3
Ubuntu Please provide any additional information below. I traced back the source code and I reached /web2py/gluon/tools.py
Line 1057 is as below:
prefix = prefix.strip()+' '
I changed it to:
prefix = T(prefix.strip())+' '
This solved the problem, but I don't know if this is the right solution.
From vinicius...@gmail.com on October 22, 2010 16:21:54
What steps will reproduce the problem? 1. Create a new "myapp" application
This solved the problem, but I don't know if this is the right solution.
Original issue: http://code.google.com/p/web2py/issues/detail?id=117