Mercurial > getan > getan
view getan/resources.py @ 465:7fc3da3c100d
More and better information in --version.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Wed, 02 May 2018 13:00:37 +0200 |
parents | 7e27d2145007 |
children | 59d9c5840273 |
line wrap: on
line source
import gettext as py_gettext import os _base_dir = os.path.join(os.path.dirname(__file__), os.pardir) share_dir = os.path.join(_base_dir, "share") def gettext(message): modir = os.path.join(share_dir, "locale") t = py_gettext.translation("getan", modir, fallback=True) return t.ugettext(message)