def METHOD_NAME(obj):
    if not obj['r_detail']:
        action = obj['r_action'].replace('_', ' ').capitalize()
        ctn = _('User %s %s this resource') % (obj['r_user'], _(action))
    else:
        ctn = i18n_trans(obj['r_detail'])
    return ctn