X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Ftranslations.py;h=8542ffbe97b20d7562226d1370a430a105c0c206;hb=1feae445c17aecb6355a2e26a3367738b3416d65;hp=e3cbce455d5b6a739c50d0a6b35711e0a8a505d1;hpb=c02531fc55b9bc998de8bf825507bf0d3e53b74e;p=m_librarian.git diff --git a/m_librarian/translations.py b/m_librarian/translations.py index e3cbce4..8542ffb 100644 --- a/m_librarian/translations.py +++ b/m_librarian/translations.py @@ -6,7 +6,7 @@ import os def get_translations(language): mo_filename = os.path.join( - os.path.dirname(__file__), 'translations', language + '.mo') + os.path.dirname(__file__), 'translations_dir', language + '.mo') if os.path.exists(mo_filename): mo_file = open(mo_filename, 'rb') translations = gettext.GNUTranslations(mo_file)