def _get_msg(self, msgid, lc):
        """Get message identified by msgid in a specific locale.

        :param: msgid (string) the identifier of a string.
        :param: lc (string) the locale.

        :return: (string) the message from the .po file.

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

            msgstr = _(msgid)
            return msgstr
        except __HOLE__ as e:
            raise ConfigError("%s" % str(e))
dataset/ETHPy150Open TheTorProject/gettor/gettor/smtp.py/SMTP._get_msg