Translate title.

@param string $title
@param string $option
@param string $prefix

@return string
426176
public function translateOption(
        string $title,
        string $option,
        string $prefix = ''
    ): string {
        $transformedOption = str_replace('.', '~', $option);
        $key = ltrim("$prefix.aggregation.$title.option.$transformedOption", '.');
        $trans = $this
            ->symfonyTranslator
            ->trans($key, [], 'aggregations');

        return $trans === $key
            ? $option
            : $trans;
    }
808469
protected function _tooltipTitle(array $options, $tooltip)
    {
        if ($tooltip === true && !Arr::key('title', $options)) {
            $options['title'] = strip_tags($options['label']);
        }

        if (is_string($tooltip)) {
            $options['title'] = $tooltip;
        }

        return $options;
    }
910600
public static function title($value, $encoding = null)
    {
        $options  = [];
        $encoding = $encoding ?: static::$encoding;

        if ($encoding) {
            $options['encoding'] = $encoding;
        }

        return StaticFilter::execute(
            static::camelCaseToUnderscore($value), Filter\UpperCaseWords::class, $options
        );
    }
375037
function title(title, widths, opt){
  var wid = title.length;
  var total = widths.reduce((a, b) => a + b + 3, 0) - 1;
  var left = parseInt((total - wid) / 2);
  if (!opt.plain) title = '\u001b[1m' + title + '\u001b[22m';
  log(p[0][0] + widths.map(col => p.h + strN(col, p.h) + p.h).join(p.h) + p[0][2]);
  log(p.v + widths.map(col => ' ' + strN(col, ' ') + ' ').join(' ') + p.v);
  log(p.v + strN(left) + title + strN(total - left - wid) + p.v);
  log(p.v + widths.map(col => ' ' + strN(col, ' ') + ' ').join(' ') + p.v);
}
171634
public function setTitle($title)
    {
        // if the alias is empty use the title for the alias.
        if ($this->_alias === null) {
            $this->setAlias($title);
        }
        
        $this->_title = $title;
        
        return $this;
    }
132655
protected String formatSectionTitle(String prefix, String sectionNumber, String title, String sectionId) {
		return MessageFormat.format(getSectionTitleFormat(), prefix, sectionNumber, title, sectionId) + "\n"; //$NON-NLS-1$
	}
455679
public static function getRssTitle($title = '')
    {
        $title = esc_html(trim(strip_tags($title)));
        $title = (empty($title)) ? __('Untitled', 'modularity') : $title;

        return $title;
    }
101349
public function prepareTitleForPersist($title)
    {
        // Strip whitespace (or other characters) from the beginning and end of a string
        $transformedTitle = trim($title);

        // Strip HTML and PHP tags from a string
        $transformedTitle = strip_tags($transformedTitle);

        // Strip tags, optionally strip or encode special characters
        // http://php.net/manual/en/filter.filters.sanitize.php
        $transformedTitle = filter_var($transformedTitle, FILTER_SANITIZE_STRING);

        // Uppercase the first character of each word in a string
        $transformedTitle = ucwords($transformedTitle);

        return $transformedTitle;
    }
1044841
public function add($title, $options = '')
    {
        $id = isset($options['id']) ? $options['id'] : $this->id();

        $item = new Item($this, $id, $title, $options);

        $this->items->push($item);

        return $item;
    }
1024546
public function makeTitle($title, $separator = ' | ')
    {
        if (empty($title)) {
            return $this->getTitle();
        }

        return $title."{$separator}".$this->getTitle();
    }
847221
public function title($sub = '', $title = 'Vinala Lumos')
    {
        if ($title != '') {
            $this->console->line("\n".$title);
            //
            $underline = '';
            for ($i = 0; $i < strlen($title); $i++) {
                $underline .= '=';
            }
            //
            $this->console->line($underline);
        }
        //
        if ($sub != '') {
            $this->console->line("\n".$sub);
        }
    }
1218956
public function setTitle( $title ) {
		if ( $this->title !== $title ) {
			$this->title = $title;
			$this->updateTitle();
		}

		return $this;
	}
129502
protected function setterTitle(string $title): string
	{
		$this->translator->set($this->name, $title);
		return $title;
	}
40374
public function postActionAllButton($title, $url, array $options = array())
    {
        $default_options = ['class'        => 'btn btn-default btn-xs action_all_btn',
                            'disabled'     => 'disabled',
                            'unlockFields' => ['checked_ids'],
                            'data-confirm' => null
                           ];

        if(isset($options['confirm'])){
            $options['data-confirm'] = $options['confirm'];
            unset($options['confirm']);
        }

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

        $html = $this->postButton($title, $url, $options);

        return $html;
    }
416251
public function title(string $title = null): Htmlable
    {
        $page = Paginator::resolveCurrentPage();

        $data = [
            'site' => ['name' => $this->site],
            'page' => ['title' => $title, 'number' => $page],
        ];

        $data['site']['name'] = $this->getHtmlTitleFormatForSite($data);

        $output = $this->getHtmlTitleFormatForPage($data);

        return $this->html->create('title', trim($output));
    }
145603
public function wp_title($title, $sep, $location){
        if( !empty($this->title) ){
            $array = [$this->title];
            $sep = ' '.trim($sep).' ';
            if( 'right' == $location ){
                $array[] = $sep;
            }else{
                array_unshift($array, $sep);
            }
            $title = implode('', $array);
        }
        return $title;
    }
877793
protected function formatTitleWithAccessKey( $title ) {
		if ( $this->fieldWidget && method_exists( $this->fieldWidget, 'formatTitleWithAccessKey' ) ) {
			return $this->fieldWidget->formatTitleWithAccessKey( $title );
		}
		return $title;
	}