Merge pull request #97 from drnextgis/master
Use T operator fot title attribute of grid buttons
This commit is contained in:
+2
-2
@@ -1906,7 +1906,7 @@ class SQLFORM(FORM):
|
|||||||
delete=None, trap=True, noconfirm=None):
|
delete=None, trap=True, noconfirm=None):
|
||||||
if showbuttontext:
|
if showbuttontext:
|
||||||
return A(SPAN(_class=ui.get(buttonclass)),
|
return A(SPAN(_class=ui.get(buttonclass)),
|
||||||
SPAN(T(buttontext), _title=buttontext,
|
SPAN(T(buttontext), _title=T(buttontext),
|
||||||
_class=ui.get('buttontext')),
|
_class=ui.get('buttontext')),
|
||||||
_href=buttonurl,
|
_href=buttonurl,
|
||||||
callback=callback,
|
callback=callback,
|
||||||
@@ -1919,7 +1919,7 @@ class SQLFORM(FORM):
|
|||||||
callback=callback,
|
callback=callback,
|
||||||
delete=delete,
|
delete=delete,
|
||||||
noconfirm=noconfirm,
|
noconfirm=noconfirm,
|
||||||
_title=buttontext,
|
_title=T(buttontext),
|
||||||
_class=trap_class(ui.get('buttontext'), trap))
|
_class=trap_class(ui.get('buttontext'), trap))
|
||||||
|
|
||||||
dbset = db(query)
|
dbset = db(query)
|
||||||
|
|||||||
Reference in New Issue
Block a user