Massimo,

I have a few sugestions to improve the localization of app welcome, so it
will be easier to international users:



   1.

   Set the labels of registration table :


 db.auth_user.first_name.label=T("First Name")

db.auth_user.last_name.label=T("Last Name")

db.auth_user.email.label=T("Email")

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



   1.

   alter views/default/user.html to :


 {{extend 'layout.html'}}

<h2>{{=request.args(0).replace('_',' ').capitalize()}}</h2>

{{=form}}

{{if request.args(0)=='login':}}

<a href="{{=URL(r=request,args='register')}}">{{T('register')}}</a><br />

<a href="{{=URL(r=request,args='retrieve_password')}}">{{T('lost
password')}}</a><br />

{{pass}}



3. Alter the menu in portal/views/layout.html to:

             {{if response.menu_auth:}}
            <h2>{{T(Authentication)}}</h2>
            {{=MENU(response.menu_auth)}}
            {{pass}}
            {{if response.menu:}}
            <h2>{{T(Main Menu)}}</h2>
            {{=MENU(response.menu)}}
            {{pass}}
            {{if response.menu_edit:}}
            <h2>{{T(Edit This App)}}</h2>
            {{=MENU(response.menu_edit)}}
            {{pass}}



   1.

   I can't find how translate the h2 title of auth pages, so I can't
   translate “register”, “login” and “retrieve password “

Look it is generated in code, note in layouts. If someone have some tip, I
will be pleased:


 Register

Nome:

   Sobrenome:

   Email:

   Password:

   Verificar Senha:



-----------------------------------------------------------------


-- 
Atenciosamente

-- 
=========================
Alexandre Andrade
Hipercenter.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to