Habari\ACL::_filter_token_description_display PHP Method

_filter_token_description_display() public static method

function _filter_token_description_display Filter to localize token descriptions
public static _filter_token_description_display ( $token ) : string
return string The localized token description
    public static function _filter_token_description_display($token)
    {
        $desc = array('super_user' => _t('Permissions for super users'), 'manage_all_comments' => _t('Manage comments on all posts'), 'manage_own_post_comments' => _t('Manage comments on one\'s own posts'), 'manage_tags' => _t('Manage tags'), 'manage_options' => _t('Manage options'), 'manage_theme' => _t('Change theme'), 'manage_theme_config' => _t('Configure the active theme'), 'manage_plugins' => _t('Activate/deactivate plugins'), 'manage_plugins_config' => _t('Configure active plugins'), 'manage_import' => _t('Use the importer'), 'manage_users' => _t('Add, remove, and edit users'), 'manage_self' => _t('Edit own profile'), 'manage_groups' => _t('Manage groups and permissions'), 'manage_logs' => _t('Manage logs'), 'manage_dash_modules' => _t('Manage dashboard modules'), 'own_posts' => _t('Permissions on one\'s own posts'), 'post_any' => _t('Permissions to all posts'), 'post_unpublished' => _t('Permissions to other user\'s unpublished posts'), 'comment' => _t('Make comments on any post'));
        // content tokens
        foreach (Post::list_active_post_types() as $name => $posttype) {
            $label = MultiByte::strtolower(Plugins::filter('post_type_display', $name, 'singular'));
            $desc['post_' . Utils::slugify($name)] = _t('Permissions to posts of type "%s"', array($label));
        }
        return isset($desc[$token]) ? $desc[$token] : $token;
    }