import gettext
import pkg_resources
+import threading
#############################
# A WorkBenchManager
workbench_manager = None
+# A thread-local scope
+thread_scope = threading.local()
+
# gettext
-translations = gettext.find(
+thread_scope.translations = gettext.find(
'mediagoblin',
pkg_resources.resource_filename(
'mediagoblin', 'translations'), ['en'])