Question

How can translate login page of my system

by using this url: http://ip:8000/init/default/user/login

display by default two text boxes username and password how can i translate these labels.

Thanks in Advance

Was it helpful?

Solution

In the model db, at the bottom, you can do:

db.auth_user.username.label=T("username")
db.auth_user.password.label=T("password")

and then via the administrative interface create click on [design][languages] create a language file like "fr-fr.py" and i will present you an interface to translate "username" and "password".

When a visitor has a browser set to "fr-fr", the visitor will see the translated labels.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top