Re: [web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread Anthony
On Monday, October 23, 2017 at 1:24:44 PM UTC-4, tomasz bandura wrote:
>
> Thanks, 
>
> I will try to open an issue.
>
> Regarding button - label is translated...strange, I'll check it why :)
>

Oh yeah, don't worry about that -- submit_button ends up getting wrapped in 
T() by the SQLFORM code.

Anthony

-- 
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.


Re: [web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread tomasz bandura
Thanks,

I will try to open an issue.

Regarding button - label is translated...strange, I'll check it why :)


T.

2017-10-23 19:09 GMT+02:00 Anthony :

> Feel free to open an issue or submit a pull request. Note, looks like the
> submit button label is hard coded as well.
>
> Anthony
>
> --
> 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.
>

-- 
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.


[web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread Anthony
Feel free to open an issue or submit a pull request. Note, looks like the 
submit button label is hard coded as well.

Anthony

-- 
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.


[web2py] confirm_registration form 'hardcoded' labels

2017-10-23 Thread tomasz bandura
Hello,

I have to provide translation for 'confirm registration form' and I noticed
different behaviour of first_name and last_name labels ( compared to
'password' fields).

So I can only provide translation for Password and Confirm Password labels.
In the *gluon.tools.py * ( line 3373,3376 ) labels
for first and last names are 'hardcoded'.

What is a reason of that solution and/or how can I fix it in my code ( How
to set correct labels)? Not jquery solution please :)


I think labels should be set to

first_name > label=self.messages.label_first_name (line 3373)
last_name > label=self.messages.label_last_name (line 3379)

Regards
Tom

-- 
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.