view pyntnclick/i18n.py @ 784:29c5badeef98 pyntnclick

Use getdefaultlocale, with a envvar list, so that it'll take LANGUAGE first, over LANG
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 19:31:03 +0200
parents 43b49f1de828
children 5ec7905b2365
line wrap: on
line source

# internationalization

from gettext import gettext


def _(s):
    return unicode(gettext(s), "utf-8")