lib/Locale/LocaleProvider.php
private function getPosixLocale(Language $language): ?array
    {
        if (!$language->enabled) {
            return null;
        }

        $posixLocale = $this->localeConverter->convertToPOSIX($language->languageCode);
        if ($posixLocale === null) {
            return null;
        }

        if (!Locales::exists($posixLocale)) {
            return null;
        }

        return [$posixLocale, Locales::getName($posixLocale)];
    }
private function getPosixLocale(Language $language): ?array
    {
        if (!$language->enabled) {
            return null;
        }

        $posixLocale = $this->localeConverter->convertToPOSIX($language->languageCode);
        if ($posixLocale === null) {
            return null;
        }

        if (!Locales::exists($posixLocale)) {
            return null;
        }

        return [$posixLocale, Locales::getName($posixLocale)];
    }
private function getPosixLocale ( Language $ language ) : ? array { if ( ! $ language -> enabled ) { return null ; } $ posixLocale = $ this -> localeConverter -> convertToPOSIX ( $ language -> languageCode ) ; if ( $ posixLocale === null ) { return null ; } if ( ! Locales :: exists ( $ posixLocale ) ) { return null ; } return [ $ posixLocale , Locales :: getName ( $ posixLocale ) ] ; }
Returns the array with POSIX locale code and name for provided eZ Platform language.

If POSIX locale does not exist or if language is not enabled, null will be returned.
Returns the array with POSIX locale code and name for provided eZ Platform language .