From: Sebastian Spaeth Date: Fri, 14 Dec 2012 11:55:21 +0000 (+0100) Subject: Use the correct translation mechanism X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=18a52dacca63a58feabdc929711590a9e889b2ee;p=mediagoblin.git Use the correct translation mechanism We accidentally used the fake translation mechanism here which will not actually translate anything. Signed-off-by: Sebastian Spaeth --- 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