_()
__construct()
addTranslation()
clearCache()
getCache()
getList()
getLocale()
getMessageId()
getMessageIds()
getMessages()
getOptions()
hasCache()
isAvailable()
isTranslated()
plural()
removeCache()
setCache()
setLocale()
setOptions()
toString()
translate()
_loadTranslationData()
_log()
_addTranslationData()
_getTagSupportForCache()
$_cache
$_options
$_translate
$_automatic
$_cacheTags
$_routed
LOCALE_DIRECTORY
LOCALE_FILENAME
Basic adapter class for each translation source adapter
| category | Zend |
|---|---|
| package | Zend_Translate |
| subpackage | Zend_Translate_Adapter |
| copyright | Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
| license | New BSD License |
_(string $messageId, string | \Zend_Locale $locale) : string
stringTranslation string
string\Zend_Locale(optional) Locale/Language to use, identical with locale identifier, @see Zend_Locale for more information
string__construct(array | \Zend_Config $options) : void
addTranslation(array | \Zend_Config $options) : \Zend_Translate_Adapter
This may be a new language or additional content for an existing language If the key 'clear' is true, then translations for the specified language will be replaced and added otherwise
\Zend_Translate_Exception |
|---|
\Zend_Translate_AdapterProvides fluent interfaceclearCache(string $tag) : void
stringTag to clear when the default tag name is not used
getCache() : \Zend_Cache_Core
\Zend_Cache_CoreThe set cachegetList() : array | null
arraynull
getMessageId(string $message, string | \Zend_Locale $locale) : string | array | false
stringMessage to get the key for
stringarrayfalse
getMessageIds(string | \Zend_Locale $locale) : array
arraygetMessages(string | \Zend_Locale $locale) : array
getOptions(string | null $optionKey) : integer | string | array | null
stringnullString returns this option null returns all options
integerstringarraynull
hasCache() : boolean
booleanisAvailable(string | \Zend_Locale $locale) : boolean
| see | \Zend_Locale |
|---|---|
| see | \Zend_Locale |
booleanisTranslated(string $messageId, boolean $original, string | \Zend_Locale $locale) : boolean
stringTranslation string
boolean(optional) Allow translation only for original language when true, a translation for 'en_US' would give false when it can be translated with 'en' only
string\Zend_Locale(optional) Locale/Language to use, identical with locale identifier, see Zend_Locale for more information
booleanplural(string $singular, string $plural, integer $number, string | \Zend_Locale $locale) : string
| see | \Zend_Locale |
|---|
stringSingular translation string
stringPlural translation string
integerNumber for detecting the correct plural
string\Zend_Locale(Optional) Locale/Language to use, identical with locale identifier, @see Zend_Locale for more information
stringremoveCache() : void
setCache(Zend_Cache_Core $cache)
\Zend_Cache_CoreCache to store to
setLocale(string | \Zend_Locale $locale) : \Zend_Translate_Adapter
\Zend_Translate_Exception |
|---|
\Zend_Translate_AdapterProvides fluent interfacesetOptions(array $options) : \Zend_Translate_Adapter
arrayAdapter options
\Zend_Translate_Exception |
|---|
\Zend_Translate_AdapterProvides fluent interfacetoString() : string
stringtranslate(string | array $messageId, string | \Zend_Locale $locale) : string
| see | \Zend_Locale |
|---|
stringarrayTranslation string, or Array for plural translations
string\Zend_Locale(optional) Locale/Language to use, identical with locale identifier, @see Zend_Locale for more information
string_loadTranslationData(mixed $data, string | \Zend_Locale $locale, array $options) : array
_log(string $message, String $locale)
stringMessage to log
StringLocale to log
_addTranslationData($options) : \Zend_Translate_Adapter
This may be a new language or additional data for an existing language If the options 'clear' is true, then the translation data for the specified language is replaced and added otherwise
| see | \Zend_Locale |
|---|
\Zend_Translate_Exception |
|---|
\Zend_Translate_AdapterProvides fluent interface_getTagSupportForCache()
$_cache : \Zend_Cache_Core
$_translate : array
$_automatic : boolean
$_cacheTags : boolean
$_routed : \array()
LOCALE_DIRECTORY
| constant | integer |
|---|
LOCALE_FILENAME
| constant | integer |
|---|