Mercurial > getan > getan
view getan/resources.py @ 524:d749ded62687
update credits in README
* Add Magnus as main developer from 2018-.
* Make formatting a bit more consistent.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Mon, 03 Dec 2018 09:45:31 +0100 |
parents | 59d9c5840273 |
children |
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.gettext(message)