public function setLabelOne($labels, $one)
    {
        $labels->singular_name = __($one);
        $labels->add_new = __('Add ' . $one);
        $labels->add_new_item = __('Add New ' . $one);
        $labels->edit_item = __('Edit ' . $one);
        $labels->new_item = __('New ' . $one);
        $labels->view_item = __('View ' . $one);
        $labels->parent_item_colon = __('Parent ' . $one . ':');
        $labels->archives = __($one . ' Archives');
        $labels->attributes = __($one . ' Attributes');
        $labels->insert_into_item = __('Insert into ' . strtolower($one));
        $labels->uploaded_to_this_item = __('Uploaded to this ' . strtolower($one));
        $labels->filter_items_list = __('Filter ' . strtolower($one) . ' list ');
        $labels->name_admin_bar = __($one);
        return $labels;
    }
public function setLabelOne($labels, $one)
    {
        $labels->singular_name = __($one);
        $labels->add_new = __('Add ' . $one);
        $labels->add_new_item = __('Add New ' . $one);
        $labels->edit_item = __('Edit ' . $one);
        $labels->new_item = __('New ' . $one);
        $labels->view_item = __('View ' . $one);
        $labels->parent_item_colon = __('Parent ' . $one . ':');
        $labels->archives = __($one . ' Archives');
        $labels->attributes = __($one . ' Attributes');
        $labels->insert_into_item = __('Insert into ' . strtolower($one));
        $labels->uploaded_to_this_item = __('Uploaded to this ' . strtolower($one));
        $labels->filter_items_list = __('Filter ' . strtolower($one) . ' list ');
        $labels->name_admin_bar = __($one);
        return $labels;
    }
public function setLabelOne ( $ labels , $ one ) { $ labels -> singular_name = __ ( $ one ) ; $ labels -> add_new = __ ( 'Add ' . $ one ) ; $ labels -> add_new_item = __ ( 'Add New ' . $ one ) ; $ labels -> edit_item = __ ( 'Edit ' . $ one ) ; $ labels -> new_item = __ ( 'New ' . $ one ) ; $ labels -> view_item = __ ( 'View ' . $ one ) ; $ labels -> parent_item_colon = __ ( 'Parent ' . $ one . ':' ) ; $ labels -> archives = __ ( $ one . ' Archives' ) ; $ labels -> attributes = __ ( $ one . ' Attributes' ) ; $ labels -> insert_into_item = __ ( 'Insert into ' . strtolower ( $ one ) ) ; $ labels -> uploaded_to_this_item = __ ( 'Uploaded to this ' . strtolower ( $ one ) ) ; $ labels -> filter_items_list = __ ( 'Filter ' . strtolower ( $ one ) . ' list ' ) ; $ labels -> name_admin_bar = __ ( $ one ) ; return $ labels ; }
Set post type singular labels

@param object $labels
@param string $one
@return object
Set post type singular labels