Kenneth -

On Apr 2, 2:20 pm, Kenneth Lundström <[email protected]>
wrote:
> Thank You Yarko,
>
> but in the tools.py file I couldn't find the text string "Change password"
> that is show on the second row in the Change password page.

This is because it is views/default/user.html which is inserting this
message, as the function name ("/default/user/change_password") ---
just update user.html, or create your own.   For example, change:

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

with

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

>
> > auth.messages.submit_button = T('Submit')
>
> I didn´t find any auth.messages in the tools.py file. When I tried to but
> auth.messages.submit_button = "Testing" it didn´t change the Submit caption.

I'm not sure what you are doing;  I just did this in a test
application:  in db.py, AFTER auth is defined by:

auth=Auth(globals(),db)                      # authentication/
authorization


I inserted this:

auth.messages.submit_button='Woohoo!'


and it changed my login (i.e. auth) button.

HOWEVER:  in "change password", reset password, do (indeed) not seem
to use auth.messages.submit_button.

Thanks for reporting this - I will run thru the rest of auth to see if
there are any others, and submit a patch to Massimo.

Regards,
Yarko

>
> Kenneth
>
> On Thu, Apr 1, 2010 at 7:02 PM, Yarko Tymciurak <[email protected]
>
> > wrote:
> > Looking at gluon/tools.py (around line 600:)  I see all the messages,
> > labels, and strings that can be customized.
>
> > For a start, you could copy this entire list into your db.py (or
> > wherever you enable auth), and at a minimum reset each such as this:
>
> > auth.messages.submit_button = T('Submit')
>
> > I seem to remember something about this not being done in gluon
> > because T() is not necessarily known there...
>
> > Hope that helps.
>
> > - Yarko
>
> > On Apr 1, 10:08 am, GhostRider <[email protected]> wrote:
> > > I have an application in finnish and swedish and everything is
> > > translated into the fi.py and se.py files. Only thing that I can´t
> > > find how to translate is the Change password page.
>
> > > Ideas?
>
> > > Kenneth
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<web2py%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/web2py?hl=en.

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

Reply via email to