view pyntnclick/i18n.py @ 789:1466365bd395 pyntnclick

Add a test for loading a resource with a dialect.
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 20:11:17 +0200
parents 43b49f1de828
children 5ec7905b2365
line wrap: on
line source

# internationalization

from gettext import gettext


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