|
ultimix
|
Public Member Functions | |
| __construct () | |
| get_client_language () | |
| pre_generation ($Options) | |
| dispatch_string_data ($RawData) | |
| include_strings ($PackageName, $PackageVersion= 'last') | |
| include_strings_js ($PackageName, $PackageVersion= 'last') | |
| get_list_of_languages () | |
| get_locale () | |
| load_data ($RawData) | |
| load_translations_from_file ($LanguageFilePath) | |
| load_translations_from_package ($PackageName, $PackageVersion) | |
| load_translations () | |
| get_string ($StringAlias, $Value= 'default') | |
Data Fields | |
| $LangList = false | |
| $StringSet = array() | |
| $Language = false | |
| $AutoTranslationsWereLoaded = false | |
| $BlockSettings = false | |
| $Cache = false | |
| $CachedMultyFS = false | |
| $PageJS = false | |
| $Security = false | |
| $String = false | |
Class provides language dependent substitutions for strings.
| __construct | ( | ) |
Constructor.
| Exception | An exception of this type is thrown. |
Definition at line 107 of file lang.php.
| dispatch_string_data | ( | $RawData | ) |
Function processes localisation string.
| $RawData | - Content of the string file. |
| Exception | An exception of this type is thrown. |
Definition at line 228 of file lang.php.
| get_client_language | ( | ) |
Function retrieves client's language from the HTTP request.
| Exception | An exception of this type is thrown. |
Definition at line 144 of file lang.php.
| get_list_of_languages | ( | ) |
Function returns list of supported languages.
| Exception | An exception of this type is thrown. |
Definition at line 445 of file lang.php.
| get_locale | ( | ) |
Function returns current language.
| Exception | An exception of this type is thrown. |
Definition at line 480 of file lang.php.
| get_string | ( | $StringAlias, | |
$Value = 'default' |
|||
| ) |
Function returns real string according to alias.
| $StringAlias | - Alias of the requested string. |
| $Value | - Default value. |
| Exception | An exception of this type is thrown. |
Definition at line 731 of file lang.php.
| include_strings | ( | $PackageName, | |
$PackageVersion = 'last' |
|||
| ) |
Function includes list of string constants.
| $PackageName | - Package name. |
| $PackageVersion | - Package version. |
| Exception | - An exception of this type is thrown. |
Definition at line 264 of file lang.php.
| include_strings_js | ( | $PackageName, | |
$PackageVersion = 'last' |
|||
| ) |
Function includes list of string constants.
| $PackageName | - Package name. |
| $PackageVersion | - Package version. |
| Exception | An exception of this type is thrown. |
Definition at line 401 of file lang.php.
| load_data | ( | $RawData | ) |
Function loads language data.
| $RawData | - Content of the string file. |
| Exception | An exception of this type is thrown. |
Definition at line 530 of file lang.php.
| load_translations | ( | ) |
Function loads all language data of the page.
| Exception | An exception of this type is thrown. |
Definition at line 686 of file lang.php.
| load_translations_from_file | ( | $LanguageFilePath | ) |
Function loads language data from file.
| $LanguageFilePath | - Path to file. |
| Exception | An exception of this type is thrown. |
Definition at line 575 of file lang.php.
| load_translations_from_package | ( | $PackageName, | |
| $PackageVersion | |||
| ) |
Function loads language data from file.
| $PackageName | - Package name. |
| $PackageVersion | - Package version. |
| Exception | An exception of this type is thrown. |
Definition at line 613 of file lang.php.
| pre_generation | ( | $Options | ) |
Function executes before any page generating actions took place.
| $Options | - Settings. |
| Exception | An exception of this type is thrown. |
Definition at line 181 of file lang.php.
| $AutoTranslationsWereLoaded = false |