Set post type plural labels

@param object $labels
@param string $many
@return object
490398
public function setLabelMany($labels, $many)
    {
        $labels->name = __($many);
        $labels->view_items = __('View ' . $many);
        $labels->search_items = __('Search ' . $many);
        $labels->not_found = __('No ' . strtolower($many) . ' Found');
        $labels->not_found_in_trash = __('No ' . strtolower($many) . ' found in Trash');
        $labels->all_items = __('All ' . $many);
        $labels->filter_items_list = __('Filter ' . $many . ' list');
        $labels->items_list_navigation = __($many . ' list navigation');
        $labels->items_list = __($many . ' list');
        $labels->menu_name = __($many);
        return $labels;
    }
690262
protected function getLabelTitle($label, $name)
    {
        if ($label === false) {
            return null;
        }

        if (is_null($label) && Lang::has("forms.{$name}")) {
            return Lang::get("forms.{$name}");
        }

        return $label ?: str_replace('_', ' ', Str::title($name));
    }
421037
private function setLabels()
    {
        $this->labels = [
            'name'               => ucwords($this->plural),
            'singular_name'      => ucwords($this->singular),
            'menu_name'          => ucwords($this->plural),
            'name_admin_bar'     => ucwords($this->singular),
            'add_new'            => 'Add New',
            'add_new_item'       => 'Add New ' . ucwords($this->singular),
            'new_item'           => 'New ' . $this->singular,
            'edit_item'          => 'Edit ' . $this->singular . ' details',
            'view_item'          => 'View ' . $this->singular,
            'all_items'          => 'All ' . $this->plural,
            'search_items'       => 'Search ' . $this->plural,
            'parent_item_colon'  => 'Parent ' . $this->plural . ':',
            'not_found'          => 'No ' . $this->plural . ' found.',
            'not_found_in_trash' => 'No ' . $this->plural . ' found in Trash.'
        ];
    }
735294
public function updateFieldLabels(&$labels)
    {
        $labels['CrumbsDisabled'] = _t(__CLASS__ . '.CRUMBSDISABLED', 'Crumbs disabled');
        $labels['HideFromMainMenu'] = _t(__CLASS__ . '.HIDEFROMMAINMENU', 'Hide from main menu');
        $labels['NavigationSettings'] = _t(__CLASS__ . '.NAVIGATION', 'Navigation');
    }
139983
public function label($label = null, $useLabelAsKey = true)
    {
        if (null !== $label) {
            $this->label = $label;
            $this->useLabelAsKey = $useLabelAsKey;

            return $this;
        }

        if ($this->useLabelAsKey) {
            return __($this->label);
        }
        return $this->label;
    }
30584
public function useLabels( $labels = array() )
	{
	    if ($this->jsWriter instanceOf \Altamira\JsWriter\Ability\Labelable) {
    		$this->jsWriter->useSeriesLabels( $this->getTitle(), $labels);
	    }
	    
	    for ( $i = 0; $i < count( $labels ) && $i < count( $this->data ); $i++ ) {
	        $this->data[$i]->setLabel( $labels[$i] );
	    }

		return $this;
	}
670923
public function setLabel($label)
    {
        if (!empty($label) && is_string($label) && ctype_print($label)) {
            $this->label = trim($label);
        }

        return $this;
    }
1234169
public static function lowerLabel($value, array $labels)
    {
        ksort($labels);

        foreach ($labels as $max => $label) {
            if ($value <= $max) {
                return $label;
            }
        }

        return end($labels);
    }
484144
public function add($columns, $label = null)
    {

        if (!is_array($columns)) {
            $columns = [$columns => $label];
        }

        foreach ($columns as $column => $label) {
            if (is_null($label)) {
                $label = str_replace(['_', '-'], ' ', ucfirst($column));
            }

            $this->add[$column] = $label;
        }

        return $this;
    }
671800
public function modelAsNode(array $labels = null)
    {
        $labels = ( ! is_null($labels)) ? $labels : $this->from;

        return $this->grammar->modelAsNode($labels);
    }
560267
public function labels(array $labels)
    {
        foreach ($labels as $field => $label)
        {
            $this->label($field, $label);
        }

        return $this;
    }
635455
protected function setLabels(&$properties)
    {
        $label = $properties['name'];

        if (Helpers::isKeyExists($properties, 'labels')) {
            $label = $properties['labels'];
        }

        $properties['labels'] = $this->getLabels($label, $properties['name']);

        return $this;
    }
899317
public function setLabel($label) : self
    {
        $index = $this->getIndex($this->label);

        if (!$label instanceof Label && !$label instanceof HtmlElement) {
            $label = new Label($label);
        }

        $this->label = $label;

        if (is_null($index)) {
            array_unshift($this->elements, $label);
        } else {
            $this->elements[$index] = $label;
        }

        return $this;
    }
1138004
public function mergeAttributeLabels($labels)
    {
        if (!isset(static::$mergedLabels[static::class])) {
            $default = $this->defaultAttributeLabels();
            foreach ($this->attributes() as $k) {
                $label = $labels[$k] ?: $default[$k];
                if (!$label) {
                    if (preg_match('/(.+)_[a-z]+$/', $k, $m)) {
                        if (isset($labels[$m[1]])) {
                            $label = $labels[$m[1]];
                        }
                    }
                }
                if (!$label) {
                    $toTranslate = preg_replace(['/_id$/', '/_label$/', '/_ids$/', '/_like$/'], [' ID', '', ' IDs', ''], $k);
                    $toTranslate = preg_replace('/_/', ' ', $toTranslate);
                    $label = Yii::t(static::$i18nDictionary, ucfirst($toTranslate));
                }
                $labels[$k] = $label;
            }
            static::$mergedLabels[static::class] = $labels;
        }

        return static::$mergedLabels[static::class];
    }
647219
protected function getValues(array $labels)
    {
        if (in_array(strtolower($this->type), $this->specialDatasets)) {
            return Collection::make($this->values)
                ->map(function ($value, $key) use ($labels) {
                    return [
                        'name'  => $labels[$key],
                        'value' => $value,
                    ];
                })->toArray();
        }

        return $this->values;
    }
633320
public function register_related_object( $name, $label, $options = null ) {

		if ( empty( $name ) || empty( $label ) ) {
			return false;
		}

		$related_object = array(
			'label'         => $label,
			'group'         => 'Custom Relationships',
			'simple'        => true,
			'bidirectional' => false,
			'data'          => array(),
			'data_callback' => null,
		);

		$related_object = array_merge( $related_object, $options );

		self::$custom_related_objects[ $name ] = $related_object;

		return true;

	}
1106788
private function iterable(array $iterable, string $label = ''): void
    {
        if ($label === '') {
            $label = '...';
        }

        $this->group($label);

        foreach ($iterable as $key => $item) {
            if (!is_string($key)) {
                $key = '';
            }

            $this->value($item, $key);
        }

        $this->groupEnd();
    }