__construct()
__toString()
clearCache()
disableCache()
equals()
findLocale()
getBrowser()
getCache()
getCountryTranslation()
getCountryTranslationList()
getDefault()
getEnvironment()
getHttpCharset()
getLanguage()
getLanguageTranslation()
getLanguageTranslationList()
getLocaleList()
getLocaleToTerritory()
getOrder()
getQuestion()
getRegion()
getScriptTranslation()
getScriptTranslationList()
getTerritoryTranslation()
getTerritoryTranslationList()
getTranslation()
getTranslationList()
hasCache()
isLocale()
removeCache()
serialize()
setCache()
setDefault()
setLocale()
toString()
_prepareLocale()
_prepareQuestionString()
$compatibilityMode
$_auto
$_browser
$_default
$_environment
$_locale
$_breakChain
$_localeData
$_territoryData
BROWSER
ENVIRONMENT
ZFDEFAULT
Base class for localization
| category | Zend |
|---|---|
| package | Zend_Locale |
| copyright | Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
| license | New BSD License |
__construct(string | \Zend_Locale $locale)
__toString() : string
stringclearCache(string $tag) : void
stringTag to clear when the default tag name is not used
disableCache(boolean $flag) : void
booleanTrue disables any set cache, default is false
equals(Zend_Locale $object) : boolean
findLocale(string $locale) : string
string
\Zend_Locale_Exception |
When the given locale is no locale or the autodetection fails |
|---|
stringgetBrowser() : array
The notation can be : de,en-UK-US;q=0.5,fr-FR;q=0.2
array- list of accepted languages including qualitygetCache() : \Zend_Cache_Core
\Zend_Cache_CoreThe set cachegetCountryTranslation(string $value, string | \Zend_Locale $locale) : array
| deprecated |
|---|
stringName to get detailed information about
arraygetCountryTranslationList(string | \Zend_Locale $locale) : array
| deprecated |
|---|
arraygetDefault() : array
arrayReturns an array of all locale stringgetEnvironment() : array
For Windows: f.e.: LC_COLLATE=C;LC_CTYPE=German_Austria.1252;LC_MONETARY=C would be recognised as de_AT
arraygetHttpCharset() : string
stringgetLanguage() : string
stringgetLanguageTranslation(string $value, string $locale) : array
| deprecated |
|---|
stringName to get detailed information about
string(Optional) Locale for language translation
arraygetLanguageTranslationList(string | \Zend_Locale $locale) : array
| deprecated |
|---|
arraygetLocaleList() : array
arrayList of all LocalesgetLocaleToTerritory(string $territory) : string | null
stringTerritory for which the locale is being searched
stringnullLocale string or null when no locale has been foundgetOrder($order) : array
Standard Searchorder is Browser, Environment, Default
arrayReturns an array of all detected localesgetQuestion(string | \Zend_Locale $locale) : array
arraygetRegion() : string | false
stringfalse- RegionstringgetScriptTranslation(string $value, string $locale) : array
| deprecated |
|---|
stringName to get detailed information about
string(Optional) locale for script translation
arraygetScriptTranslationList(string | \Zend_Locale $locale) : array
| deprecated |
|---|
arraygetTerritoryTranslation(string $value, string | \Zend_Locale $locale) : array
| deprecated |
|---|
stringName to get detailed information about
arraygetTerritoryTranslationList(string | \Zend_Locale $locale) : array
| deprecated |
|---|
arraygetTranslation(string $value, string $path, string | \Zend_Locale $locale) : string | false
For detailed information about the types look into the documentation
stringName to get detailed information about
string(Optional) Type of information to return
stringfalseThe wished information in the given languagegetTranslationList(string $path, string | \Zend_Locale $locale, string $value) : array
For detailed information about the types look into the documentation
string(Optional) Type of information to return
string(Optional) Value for detail list
arrayArray with the wished information in the given languagehasCache() : boolean
booleanisLocale(string | \Zend_Locale $locale, boolean $strict, boolean $compatible) : boolean
boolean(Optional) If true, no rerouting will be done when checking
boolean(DEPRECATED) Only for internal usage, brakes compatibility mode
booleanIf the locale is known dependend on the settingsremoveCache() : void
serialize() : string
stringsetCache(Zend_Cache_Core $cache) : void
\Zend_Cache_CoreCache to set
setDefault(string | \Zend_Locale $locale, float $quality) : void
floatThe quality to set from 0 to 1
\Zend_Locale_Exception |
When a autolocale was given |
|---|---|
\Zend_Locale_Exception |
When a unknown locale was given |
toString() : string
string_prepareLocale(string | \Zend_Locale $locale, boolean $strict) : string
boolean(Optional) Strict preparation
\Zend_Locale_Exception |
When no locale is set which is only possible when the class was wrong extended |
|---|
string_prepareQuestionString(string $input) : string
stringRegex to parse
string$compatibilityMode : boolean
$_auto : string
$_browser : string
$_default : string
$_environment : string
$_locale : string
$_breakChain : boolean
$_localeData : array
$_territoryData : array
BROWSER
ENVIRONMENT
ZFDEFAULT