def get_localized_docstring(obj, domain):
    """Get a cleaned-up, localized copy of docstring of this class."""
    if obj.__class__.__doc__ is not None:
        return inspect.cleandoc(
            gettext.dgettext(domain, obj.__class__.__doc__))
Get a cleaned-up, localized copy of docstring of this class.