From a0dead1586fe0548007754dd38641cee2160f695 Mon Sep 17 00:00:00 2001 From: Denis Rykov Date: Thu, 23 May 2013 17:58:43 +0700 Subject: [PATCH] Use T operator fot title attribute of grid buttons --- gluon/sqlhtml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index e5bd037e..2a755bc6 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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)