view getan/resources.py @ 563:5ec211c172ed

Removed the filter_input step in the processing of states. As far as I see it is not used anywhere.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 22 Sep 2020 17:30:02 +0200
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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)