X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Ftranslations.py;h=8542ffbe97b20d7562226d1370a430a105c0c206;hb=16e5047ee2143645c07c3555ff6e4ce605c7614d;hp=e3cbce455d5b6a739c50d0a6b35711e0a8a505d1;hpb=4e1404c5e9bcbc64b2c8f6db2b5a779140be3623;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)