T('Add') in grid, thanks Tito Garrido

This commit is contained in:
mdipierro
2012-12-18 20:28:44 -06:00
parent e93c49fb8c
commit a221e0cbee
4 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -1786,7 +1786,7 @@ class SQLFORM(FORM):
session.flash = T('not authorized')
redirect(referrer)
def gridbutton(buttonclass='buttonadd', buttontext='Add',
def gridbutton(buttonclass='buttonadd', buttontext=T('Add'),
buttonurl=url(args=[]), callback=None,
delete=None, trap=True):
if showbuttontext:
@@ -1997,7 +1997,7 @@ class SQLFORM(FORM):
if create:
add = gridbutton(
buttonclass='buttonadd',
buttontext='Add',
buttontext=T('Add'),
buttonurl=url(args=['new', tablename]))
if not searchable:
console.append(add)