view getan/resources.py @ 410:7e27d2145007

Code-cleanup: improves style. * Fixes warnings by pep8 v1.5.7.
author Bernhard Reiter <bernhard@intevation.de>
date Wed, 03 May 2017 11:50:30 +0200
parents d4ce02a33acd
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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)