view getan/resources.py @ 547:23107de98a4f 3.4

Adds long_description_content_type to setup.py * To be able to upload something to pypi, the parameter long_description_content_type must be specified.
author Magnus Schieder <magnus.schieder@intevation.de>
date Fri, 31 Jan 2020 16:49:51 +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)