aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-14 12:55:21 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-12-14 15:13:31 +0100
commit18a52dacca63a58feabdc929711590a9e889b2ee (patch)
tree7052f44ee1ce99c3a5261e99c771ed23f5a5ed36
parent2f5926a65d4e56d4ab9c7bfd6b3de25a032b8be5 (diff)
downloadmediagoblin-18a52dacca63a58feabdc929711590a9e889b2ee.tar.lz
mediagoblin-18a52dacca63a58feabdc929711590a9e889b2ee.tar.xz
mediagoblin-18a52dacca63a58feabdc929711590a9e889b2ee.zip
Use the correct translation mechanism
We accidentally used the fake translation mechanism here which will not actually translate anything. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
-rw-r--r--mediagoblin/tools/response.py7
1 files 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