This way change all SQLFORM.grid, so its not good enough, because i have 
more then one SQLFORM.grid, which i want to change.
I was found next
    try:
        for x in grid.elements('span.buttontext'):
            if x.components[0] == "Edit":
                x.components[0] = "Custom edit"
    except Exception : pass

Its work, but i dont sure that its True way.

четверг, 10 декабря 2015 г., 8:27:48 UTC+3 пользователь Massimo Di Pierro 
написал:
>
> One way is to use internationalization. Make an en.py language file and 
> translate the strings anyway one want, using the admin languages tab. No 
> coding required.
>
>
> On Wednesday, 9 December 2015 22:57:39 UTC-6, Анатолий Стешенко wrote:
>>
>> Good day. How i can change text of buttons of the SQLFORM.grid?
>> For example i want to change "Add Record" to "Add new item","View" to 
>> "Show details".
>>
>

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

Reply via email to