mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 01:07:46 +02:00
gettext: enable fallback language
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user