protected function prepareOptionLocal()
    {
        $local = $this->defaultLocal;
        foreach ($local as $key => $value) {
            if (!empty($this->local[$key]) && is_string($this->local[$key])) {
                $value = $this->local[$key];
            }
            $local[$key] = Yii::t($this->translateCategory, $value);
        }

        $shortlocal = [];
        $shortNames = [
            'allRecords'        => 'allr',
            'error'             => 'erro',
            'minimumCharacters' => 'mcha',
            'next'              => 'next',
            'noRecords'         => 'nrec',
            'previous'          => 'prev',
            'recordsContaining' => 'rcon',
        ];
        foreach ($local as $key => $value) {
            if (isset($shortNames[$key])) {
                $shortlocal[$shortNames[$key]] = $value;
            } else {
                $shortlocal[$key] = $value;
            }
        }

        return $shortlocal;
    }
protected function prepareOptionLocal()
    {
        $local = $this->defaultLocal;
        foreach ($local as $key => $value) {
            if (!empty($this->local[$key]) && is_string($this->local[$key])) {
                $value = $this->local[$key];
            }
            $local[$key] = Yii::t($this->translateCategory, $value);
        }

        $shortlocal = [];
        $shortNames = [
            'allRecords'        => 'allr',
            'error'             => 'erro',
            'minimumCharacters' => 'mcha',
            'next'              => 'next',
            'noRecords'         => 'nrec',
            'previous'          => 'prev',
            'recordsContaining' => 'rcon',
        ];
        foreach ($local as $key => $value) {
            if (isset($shortNames[$key])) {
                $shortlocal[$shortNames[$key]] = $value;
            } else {
                $shortlocal[$key] = $value;
            }
        }

        return $shortlocal;
    }
protected function prepareOptionLocal ( ) { $ local = $ this -> defaultLocal ; foreach ( $ local as $ key => $ value ) { if ( ! empty ( $ this -> local [ $ key ] ) && is_string ( $ this -> local [ $ key ] ) ) { $ value = $ this -> local [ $ key ] ; } $ local [ $ key ] = Yii :: t ( $ this -> translateCategory , $ value ) ; } $ shortlocal = [ ] ; $ shortNames = [ 'allRecords' => 'allr' , 'error' => 'erro' , 'minimumCharacters' => 'mcha' , 'next' => 'next' , 'noRecords' => 'nrec' , 'previous' => 'prev' , 'recordsContaining' => 'rcon' , ] ; foreach ( $ local as $ key => $ value ) { if ( isset ( $ shortNames [ $ key ] ) ) { $ shortlocal [ $ shortNames [ $ key ] ] = $ value ; } else { $ shortlocal [ $ key ] = $ value ; } } return $ shortlocal ; }
Sets translations JS option.
@return string
Sets translations JS option .