Generates the adapter
Zend_Translate_Adapter
__construct
(string|array $options, [string|Zend_Locale $locale = null])
-
string|array
$options: Options for this adapter
-
string|Zend_Locale
$locale: OPTIONAL Locale/Language to set, identical with Locale identifiers see Zend_Locale for more information
Redefined in descendants as:
Add translation data
It may be a new language or additional data for existing language If $clear parameter is true, then translation data for specified language is replaced and added otherwise
void
addTranslation
(array|string $data, string|Zend_Locale $locale, [ $option = null], boolean|string|array $clear)
-
array|string
$data: Translation data
-
string|Zend_Locale
$locale: Locale/Language to add data for, identical with locale identifier, see Zend_Locale for more information
-
boolean|string|array
$clear: OPTIONAL Option for this Adapter
-
$option
Returns the avaiable languages from this adapter
array
getList
()
Gets locale
Zend_Locale|null
getLocale
()
Returns the adapters name and it's options
integer|string|array
getOptions
([string|null $optionKey = null])
-
string|null
$optionKey: String returns this option null returns all options
Is the wished language avaiable ?
boolean
isAvailable
(string|Zend_Locale $locale)
-
string|Zend_Locale
$locale: Language to search for, identical with locale identifier, see Zend_Locale for more information
Sets locale
void
setLocale
(string|Zend_Locale $locale)
-
string|Zend_Locale
$locale: Locale to set
Sets new adapter options
void
setOptions
(array $options)
-
array
$options: Adapter options
Returns the adapter name
string
toString
()
Redefined in descendants as:
Translates the given string returns the translation
string
translate
(string $messageId, [string|Zend_Locale $locale = null])
-
string
$messageId: Translation string
-
string|Zend_Locale
$locale: OPTIONAL Locale/Language to use, identical with locale identifier, see Zend_Locale for more information
Load translation data
void
_loadTranslationData
(mixed $data, string|Zend_Locale $locale, [mixed $option = null])
-
mixed
$data
-
string|Zend_Locale
$locale
-
mixed
$option
Redefined in descendants as: