diff options
Diffstat (limited to 'mediagoblin/tools')
-rw-r--r-- | mediagoblin/tools/translate.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mediagoblin/tools/translate.py b/mediagoblin/tools/translate.py index 257bd791..e6df612d 100644 --- a/mediagoblin/tools/translate.py +++ b/mediagoblin/tools/translate.py @@ -22,6 +22,7 @@ from babel import localedata from babel.support import LazyProxy from mediagoblin import mg_globals +from mediagoblin._compat import ugettext, ungettext ################### # Translation tools @@ -146,8 +147,7 @@ def pass_to_ugettext(*args, **kwargs): The reason we can't have a global ugettext method is because mg_globals gets swapped out by the application per-request. """ - return mg_globals.thread_scope.translations.ugettext( - *args, **kwargs) + return ugettext(*args, **kwargs) def pass_to_ungettext(*args, **kwargs): """ @@ -156,8 +156,7 @@ def pass_to_ungettext(*args, **kwargs): The reason we can't have a global ugettext method is because mg_globals gets swapped out by the application per-request. """ - return mg_globals.thread_scope.translations.ungettext( - *args, **kwargs) + return ungettext(*args, **kwargs) def lazy_pass_to_ugettext(*args, **kwargs): |