PHP Interface eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface

eZ Publish uses - locale format (mostly, some supported locales being out of this format, e.g. cro-HR). Symfony uses the standard POSIX locale format (_), which is supported by Intl PHP extension. Locale converters are meant to convert in those 2 formats back and forth.
ファイルを表示 Open project: ezsystems/ezpublish-kernel Interface Usage Examples

Public Methods

Method Description
convertToEz ( string $posixLocale ) : string | null Converts a locale in POSIX format to eZ Publish internal format.
convertToPOSIX ( string $ezpLocale ) : string | null Converts a locale in eZ Publish internal format to POSIX format.

Method Details

convertToEz() public method

Returns null if conversion cannot be made.
public convertToEz ( string $posixLocale ) : string | null
$posixLocale string
return string | null

convertToPOSIX() public method

Returns null if conversion cannot be made.
public convertToPOSIX ( string $ezpLocale ) : string | null
$ezpLocale string
return string | null