howdy/howdy-gtk/src/i18n.py
2021-01-03 16:10:13 +01:00

12 lines
356 B
Python

# Support file for translations
# Import modules
import gettext
import os
# Get the right translation based on locale, falling back to base if none found
translation = gettext.translation("gtk", localedir=os.path.join(os.path.dirname(__file__), "locales"), fallback=True)
translation.install()
# Export translation function as _
_ = translation.gettext