Class

eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter

class LocaleConverter implements LocaleConverterInterface

Methods

__construct(array $conversionMap, LoggerInterface $logger)

string|null convertToPOSIX(string $ezpLocale)

Converts a locale in eZ Publish internal format to POSIX format.

string|null convertToEz(string $posixLocale)

Converts a locale in POSIX format to eZ Publish internal format.

Details

at line 35
public __construct(array $conversionMap, LoggerInterface $logger)

Parameters

array $conversionMap
LoggerInterface $logger

at line 50
public string|null convertToPOSIX(string $ezpLocale)

Converts a locale in eZ Publish internal format to POSIX format.

Returns null if conversion cannot be made.

Parameters

string $ezpLocale

Return Value

string|null

at line 69
public string|null convertToEz(string $posixLocale)

Converts a locale in POSIX format to eZ Publish internal format.

Returns null if conversion cannot be made.

Parameters

string $posixLocale

Return Value

string|null