Use T operator fot title attribute of grid buttons

This commit is contained in:
Denis Rykov
2013-05-23 17:58:43 +07:00
parent 9f695c783e
commit a0dead1586
+2 -2
View File
@@ -1906,7 +1906,7 @@ class SQLFORM(FORM):
delete=None, trap=True, noconfirm=None):
if showbuttontext:
return A(SPAN(_class=ui.get(buttonclass)),
SPAN(T(buttontext), _title=buttontext,
SPAN(T(buttontext), _title=T(buttontext),
_class=ui.get('buttontext')),
_href=buttonurl,
callback=callback,
@@ -1919,7 +1919,7 @@ class SQLFORM(FORM):
callback=callback,
delete=delete,
noconfirm=noconfirm,
_title=buttontext,
_title=T(buttontext),
_class=trap_class(ui.get('buttontext'), trap))
dbset = db(query)