view getan/resources.py @ 39:d4ce02a33acd

Minor fixes (logging, states)
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 15 Dec 2010 11:35:59 +0100
parents e6f81aa329b1
children 7e27d2145007
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)