+
+
+def get_translation(language):
+ import gettext
+ from .functions import lang_code_3to2
+
+ return gettext.translation(
+ 'messages',
+ localedir=os.path.join(os.path.dirname(__file__), 'locale'),
+ languages=[lang_code_3to2(language), 'pl'],
+ )