view getan/resources.py @ 550:28b1c18c900f

Specify project keys in getan-report with SQL patterns * In getan-report project keys can now be specified with SQL patterns. This allows projects and their sub-projects to be better selected for output. % - zero, one, or multiple characters _ - single character
author Magnus Schieder <mschieder@intevation.de>
date Tue, 11 Feb 2020 15:46:37 +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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)