gettext: enable fallback language

This commit is contained in:
Patrick Ulbrich
2012-05-26 17:35:54 +02:00
parent 101dd91734
commit f24c31fb69

View File

@@ -31,4 +31,4 @@ from common.utils import PACKAGE_NAME
locale.bindtextdomain(PACKAGE_NAME, LOCALE_DIR)
# add gettext shortcut "_" for string translations
_ = gettext.translation(PACKAGE_NAME, LOCALE_DIR).ugettext
_ = gettext.translation(domain = PACKAGE_NAME, localedir = LOCALE_DIR, fallback = True).ugettext