'Returns prettified name of the object type'

def get_human_type(self, translate=True):

    try:
        obj_name = re.match('.*\\.(?P<name>\\w+)$', self.object_type).group('name')
        pattern = re.compile('([A-Z][A-Z][a-z])|([a-z][A-Z])')
        human_type = pattern.sub((lambda m: ((m.group()[:1] + '    ') + m.group()[1:])), obj_name)
        if translate:
            human_type = _(human_type)
        return human_type
    except Exception:
        return self.object_type
