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)
packages=['m_librarian', 'm_librarian.web'],
package_data={'m_librarian': [
'glst/*.txt', 'glst/genres_*.glst',
- 'translations/*.mo', 'translations/*.po',
+ 'translations_dir/*.mo', 'translations_dir/*.po',
'web/static/style.css', 'web/views/*.py', 'web/views/*.tmpl',
]
},