Repository URL to install this package:
|
Version:
0.7.13 ▾
|
# -*- coding: utf-8 -*-
import os, sys, gettext
TRANSLATION_DOMAIN = u'debreate'
LOCALE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), u'locale')
gettext.install(TRANSLATION_DOMAIN, LOCALE_DIR, unicode=True)
if sys.version_info[0] < 3:
## Ensure gettext
#
# This is a workaround for Python 2
# \param str_value
# \b \e unicode|str : String to be converted to unicode & translated
def GT(str_value):
str_value = unicode(str_value)
return _(str_value)
else:
GT = _