Mercurial > getan > getan
view getan/resources.py @ 535:d5acadeef0f8
improve usage message & simply code
* Shorten help output for `--database` as the good option name is enough
to explain.
* Fix typo in help output for `--empty'
* Simplyied code by removing `dest` and `metavar` for add_argument
where it was not necessary because it was already the default if those
parameters are not given.
* Add Intevation and Magnus as rights holder and author for 2019 and 2020.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 08 Jan 2020 09:22:23 +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)