Prado\I18N\core\CultureInfo::getNativeName PHP Метод

getNativeName() публичный Метод

Gets the culture name in the language that the culture is set to display. Returns array('Language','Country'); 'Country' is omitted if the culture is neutral.
public getNativeName ( ) : array
Результат array array with language and country as elements, localized.
    function getNativeName()
    {
        $lang = substr($this->culture, 0, 2);
        $reg = substr($this->culture, 3, 2);
        $language = $this->findInfo("Languages/{$lang}");
        $region = $this->findInfo("Countries/{$reg}");
        if ($region) {
            return $language[0] . ' (' . $region[0] . ')';
        } else {
            return $language[0];
        }
    }