def _get_msg(self, msgid, lc):
        # obtain the content in the proper language
        try:
            t = gettext.translation(lc, self.i18ndir, languages=[lc])
            _ = t.ugettext

            msgstr = _(msgid)
            return msgstr
        except IOError as e:
            raise ConfigError("%s" % str(e))
Get message identified by msgid in a specific locale.
dataset/ETHPy150Open TheTorProject/gettor/gettor/smtp.py/SMTP._get_msg