L10n Class Reference
Inheritance diagram for L10n:

Public Member Functions | |
| catalog ($language=null) | |
| get ($language=null) | |
| map ($mixed=null) | |
Public Attributes | |
| $charset = 'utf-8' | |
| $default = null | |
| $found = false | |
| $lang = 'eng' | |
| $language = 'English (United States)' | |
| $languagePath = array('eng') | |
| $locale = 'en_us' | |
Detailed Description
Definition at line 37 of file l10n.php.
Member Function Documentation
| L10n::catalog | ( | $ | language = null |
) |
Attempts to find catalog record for requested language
- Parameters:
-
mixed $language string requested language, array of requested languages, or null for whole catalog
- Returns:
- mixed array catalog record for requested language, array of catalog records, whole catalog, or false when language doesn't exist
| L10n::get | ( | $ | language = null |
) |
Gets the settings for $language. If $language is null it attempt to get settings from I10n::__autoLanguage(); if this fails the method will get the settings from I10n::__setLanguage();
- Parameters:
-
string $language Language (if null will use DEFAULT_LANGUAGE if defined) public
Definition at line 338 of file l10n.php.
References $language.
| L10n::map | ( | $ | mixed = null |
) |
Attempts to find locale for language, or language for locale
- Parameters:
-
mixed $mixed 2/3 char string (language/locale), array of those strings, or null
- Returns:
- mixed string language/locale, array of those values, whole map as an array, or false when language/locale doesn't exist public
Member Data Documentation
| L10n::$language = 'English (United States)' |
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/libs/l10n.php