sdolan explained why your code is not working and provided a great solution. But it has some inconvenience: you need to import gettext into each module that you want to include.
Elf Sternberg : gettext . , , , :). , , Django ugettext. Django, lib gettext, .
, ? __init__.py, , :
import gettext
gettext.install('brainz', '../datas/translations/')
! _() , gettext. , , gettext, , , . , , Pure Evil (tm). , "brainz" .
"brainz" , sdolan: . , , bindtextdomain textdomain, , :
import gettext
t = gettext.translation('brainz', '../datas/translations/')
_ = t.ugettext
API- gettext API- GNU gettext. . install API .
: , pygettext GNU xgettext. ! Pygettext . xgettext Python.