def get_lazy_gettext(domain):

    def _lazy_gettext(msg):
        """Create and return a Message object.

        Message encapsulates a string so that we can translate it later when
        needed.
        """
        return Message(msg, domain)

    return _lazy_gettext
Assemble and return a lazy gettext function for a given domain.
dataset/ETHPy150Open openstack-dev/heat-cfnclient/heat_cfnclient/openstack/common/gettextutils.py/get_lazy_gettext