Zend_LocaleBase class for localization
Located in /Locale.php (line 30)
static string|false
getTranslation
([string $value = null], [string $path = null], [string|Zend_Locale $locale = null])
static array
getTranslationList
([string $path = null], [string|Zend_Locale $locale = null], [string $value = null])
static boolean
isLocale
(string|Zend_Locale $locale, [boolean $strict = false], [boolean $compatible = true])
static boolean
$compatibilityMode
= false (line 191)
Defines if old behaviour should be supported Old behaviour throws notices and will be deleted in future releases
static string
$_auto
(line 212)
Automatic detected locale
static string
$_browser
(line 219)
Browser detected locale
static string
$_default
= array('en' => true) (line 233)
Default locale
static string
$_environment
(line 226)
Environment detected locale
string
$_locale
(line 205)
Actual set locale
static clearCache (line 975)
Clears all set cache data
static disableCache (line 987)
Disables the set cache
static findLocale (line 860)
Finds the proper locale based on the input
Checks if it exists, degrades it when necessary Detects registry locale and when all fails tries to detect a automatic locale Returns the found locale as string
static getBrowser (line 423)
Return an array of all accepted languages of the client Expects RFC compilant Header !!
The notation can be : de,en-UK-US;q=0.5,fr-FR;q=0.2
static getCountryTranslation (line 709)
Returns the localized country name
static getCountryTranslationList (line 632)
Returns an array with the name of all countries translated to the given language
static getDefault (line 290)
Return the default locale
static getEnvironment (line 364)
Expects the Systems standard locale
For Windows: f.e.: LC_COLLATE=C;LC_CTYPE=German_Austria.1252;LC_MONETARY=C would be recognised as de_AT
static getHttpCharset (line 534)
Return the accepted charset of the client
static getLanguageTranslation (line 681)
Returns the localized language name
static getLanguageTranslationList (line 606)
Returns an array with the name of all languages translated to the given language
static getLocaleList (line 913)
Returns a list of all known locales where the locale is the key Only real locales are returned, the internal locales 'root', 'auto', 'browser' and 'environment' are suppressed
static getLocaleToTerritory (line 896)
Returns the expected locale for a given territory
static getOrder (line 1078)
Search the locale automatically and return all used locales ordered by quality
Standard Searchorder is Browser, Environment, Default
static getQuestion (line 736)
Returns an array with translated yes strings
static getScriptTranslation (line 695)
Returns the localized script name
static getScriptTranslationList (line 619)
Returns an array with the name of all scripts translated to the given language
static getTerritoryTranslation (line 724)
Returns the localized territory name All territories contains other countries.
static getTerritoryTranslationList (line 646)
Returns an array with the name of all territories translated to the given language All territories contains other countries.
static getTranslation (line 661)
Returns a localized information string, supported are several types of informations.
For detailed information about the types look into the documentation
static getTranslationList (line 587)
Returns localized informations as array, supported are several types of informations.
For detailed information about the types look into the documentation
static hasCache (line 953)
Returns true when a cache is set
static isLocale (line 808)
Checks if a locale identifier is a real locale or not
Examples: "en_XX" refers to "en", which returns true "XX_yy" refers to "root", which returns false
static removeCache (line 964)
Removes any set cache
static setCache (line 942)
Sets a cache
static setDefault (line 322)
Sets a new default locale which will be used when no locale can be detected
If provided you can set a quality between 0 and 1 (or 2 and 100) which represents the percent of quality the browser requested within HTTP
Constructor __construct (line 248)
Generates a locale object
If no locale is given a automatic search is done Then the most probable locale will be automatically set Search order is
equals (line 568)
Returns true if both locales are equal
getLanguage (line 508)
Returns the language part of the locale
getRegion (line 519)
Returns the region part of the locale if available
serialize (line 259)
Serialization Interface
toString (line 269)
Returns a string representation of the object
__toString (line 280)
Returns a string representation of the object Alias for toString
Documentation generated on Mon, 21 Jun 2010 15:31:39 -0400 by phpDocumentor 1.4.3