From 18a52dacca63a58feabdc929711590a9e889b2ee Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 14 Dec 2012 12:55:21 +0100 Subject: [PATCH] Use the correct translation mechanism We accidentally used the fake translation mechanism here which will not actually translate anything. Signed-off-by: Sebastian Spaeth --- mediagoblin/tools/response.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mediagoblin/tools/response.py b/mediagoblin/tools/response.py index 6d14b8b7..8edd976d 100644 --- a/mediagoblin/tools/response.py +++ b/mediagoblin/tools/response.py @@ -16,7 +16,8 @@ from webob import Response, exc from mediagoblin.tools.template import render_template -from mediagoblin.tools.translate import fake_ugettext_passthrough as _ +from mediagoblin.tools.translate import (lazy_pass_to_ugettext as L_, + pass_to_ugettext as _) def render_to_response(request, template, context, status=200): @@ -26,8 +27,8 @@ def render_to_response(request, template, context, status=200): status=status) -def render_error(request, status=500, title=_('Oops!'), - err_msg=_('An error occured')): +def render_error(request, status=500, title=L_('Oops!'), + err_msg=L_('An error occured')): """Render any error page with a given error code, title and text body Title and description are passed through as-is to allow html. Make -- 2.25.1