I have the following structure :
/ |- main.py |- brainz | |- __init__.py | |- Brainz.py |- datas |- locale |- en_US |- LC
I think your __init__.py should be something like:
__init__.py
import locale import gettext import os current_locale, encoding = locale.getdefaultlocale() locale_path = 'datas/locale/' language = gettext.translation ('brainz', locale_path, [current_locale] ) language.install()