From 68ccf6510d15ffdb5696c9d72e90da42eb78c8cb Mon Sep 17 00:00:00 2001 From: spametki Date: Sun, 27 Oct 2013 10:28:23 -0300 Subject: [PATCH] admin app: changed string interpolation in T calls --- applications/admin/controllers/default.py | 8 ++++---- applications/admin/languages/es.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 4639a627..e68008d8 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -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) diff --git a/applications/admin/languages/es.py b/applications/admin/languages/es.py index 7925f7cf..e064e408 100644 --- a/applications/admin/languages/es.py +++ b/applications/admin/languages/es.py @@ -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',