admin app: changed string interpolation in T calls

This commit is contained in:
spametki
2013-10-27 10:28:23 -03:00
parent d960513ef2
commit 68ccf6510d
2 changed files with 5 additions and 4 deletions

View File

@@ -230,7 +230,7 @@ def site():
redirect(URL('design', args=appname))
else:
session.flash = \
DIV(T('unable to create application "%s"' % appname),
DIV(T('unable to create application "%s"', appname),
PRE(error))
redirect(URL(r=request))
@@ -341,7 +341,7 @@ def pack():
response.headers['Content-Disposition'] = disposition
return safe_read(filename, 'rb')
else:
session.flash = T('internal error: %s' % e)
session.flash = T('internal error: %s', e)
redirect(URL('site'))
def pack_plugin():
@@ -375,7 +375,7 @@ def pack_custom():
response.headers['Content-Disposition'] = disposition
return safe_read(filename, 'rb')
else:
session.flash = T('internal error: %s' % e)
session.flash = T('internal error: %s', e)
redirect(URL(args=request.args))
def ignore(fs):
return [f for f in fs if not (
@@ -1835,7 +1835,7 @@ def install_plugin():
filename = "web2py.plugin.%s.w2p" % cleanpath(plugin)
if plugin_install(app, urllib.urlopen(source),
request, filename):
session.flash = T('New plugin installed: %s' % filename)
session.flash = T('New plugin installed: %s', filename)
else:
session.flash = \
T('unable to create application "%s"', filename)

View File

@@ -294,6 +294,7 @@
'previous 100 rows': '100 filas anteriores',
'Private files': 'Archivos privados',
'private files': 'archivos privados',
'Project Progress': 'Project Progress',
'Query:': 'Consulta:',
'Rapid Search': 'Rapid Search',
'record': 'registro',