Class Localization

Methods summary

public static
public static
# changeLocale( $locale )
public static string
# activeLocale( )

Returns the currently active locale

public static string
# activeLanguage( )

Returns the language for the currently active locale

public
# setLocale( $locale )
public
public
public static
public static
public static array
# getAvailableInterfaceLanguageDescriptions( string|null $displayLocale = '' )

Generates a list of all available languages and returns an array like [ "de_DE" => "Deutsch (Deutschland)", "en_US" => "English (United States)", "fr_FR" => "Francais (France)"] The result will be sorted by the key. If the $displayLocale is set, the language- and region-names will be returned in that language.

public static string
# getLanguageDescription( string $locale, string|null $displayLocale = '' )

Get the description of a locale consisting of language and region description e.g. "French (France)".

protected static Concrete\Core\Cache\Adapter\ZendCacheDriver
public static
# clearCache( )

Clear the translations cache.

Properties summary

protected $translate
# null