This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Library_Localization

Direct known subclasses

Localization

Methods summary

public
# init( )
public static Localization
public static
# changeLocale( string $locale, boolean $coreOnly = false )

Changes the currently active locale

public static string
# activeLocale( )

Returns the currently active locale

public static string
# activeLanguage( )

Returns the language for the currently active locale

public
public
# setLocale( string $locale, boolean $coreOnly = false )

Changes the currently active locale

public
public
# getActiveTranslateObject( )

Returns the current Zend_Translate instance (null if and only if locale is en_US)

public
# addSiteInterfaceLanguage( string $locale = null )

Loads the site interface locale.

public static
# getTranslate( )

Returns the current Zend_Translate instance (null if and only if locale is en_US)

public static
public static Array
# getAvailableInterfaceLanguageDescriptions( string $displayLocale = null )

Generates a list of all available languages and returns an array like [ "de_DE" => "Deutsch (Deutschland)", "en_US" => "English (United States)", "fr_FR" => "Français (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 $displayLocale = null )

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

Properties summary

protected Zend_Translate|null $translate

The current Zend_Translate instance (null if and only if locale is en_US)

#