Inheritance diagram for L10n:

Public Member Functions | |
| __autoLanguage () | |
| __construct () | |
| __setLanguage ($language=null) | |
| catalog ($language=null) | |
| get ($language=null) | |
| map ($mixed=null) | |
Public Attributes | |
| $__l10nCatalog | |
| $__l10nMap | |
| $charset = 'utf-8' | |
| $default = null | |
| $found = false | |
| $lang = 'eng' | |
| $language = 'English (United States)' | |
| $languagePath = array('eng') | |
| $locale = 'en_us' | |
Definition at line 35 of file l10n.php.
| L10n::__construct | ( | ) |
Class constructor
Reimplemented from Object.
Definition at line 320 of file l10n.php.
References __construct().
| L10n::__autoLanguage | ( | ) |
Attempts to find the locale settings based on the HTTP_ACCEPT_LANGUAGE variable
Definition at line 395 of file l10n.php.
References __setLanguage(), and env().
Referenced by get().
| L10n::__setLanguage | ( | $ | language = null |
) |
Sets the class vars to correct values for $language. If $language is null it will use the DEFAULT_LANGUAGE if defined
| string | $language Language (if null will use DEFAULT_LANGUAGE if defined) private |
Definition at line 348 of file l10n.php.
References $language, Configure::read(), and Configure::write().
Referenced by __autoLanguage(), and get().
| L10n::catalog | ( | $ | language = null |
) |
Attempts to find catalog record for requested language
| mixed | $language string requested language, array of requested languages, or null for whole catalog |
Definition at line 448 of file l10n.php.
References $language.
| 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();
| string | $language Language (if null will use DEFAULT_LANGUAGE if defined) public |
Definition at line 334 of file l10n.php.
References $language, __autoLanguage(), and __setLanguage().
| L10n::map | ( | $ | mixed = null |
) |
Attempts to find locale for language, or language for locale
| mixed | $mixed 2/3 char string (language/locale), array of those strings, or null |
| L10n::$language = 'English (United States)' |
1.4.7