Generates the adapter
Zend_Translate_Adapter
__construct
(string|array $options, [ $locale = null], string|Zend_Locale $language)
-
string|array
$options: Options for this adapter
-
string|Zend_Locale
$language: OPTIONAL Language to set, identical with Locale identifiers see Zend_Locale for more information
-
$locale
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
(string|Zend_Locale $language, mixed $data, [boolean $clear = false])
-
string|Zend_Locale
$language: Language to add data for, identical with locale identifier, see Zend_Locale for more information
-
mixed
$data: Translation data
-
boolean
$clear: Empty the table or add if exists
Gets the actual language
string
getLanguage
()
Returns the avaiable languages from this adapter
void
getLanguageList
()
Gets locale
Zend_Locale|null
getLocale
()
Returns the adapters name and it's options
mixed
getOptions
([string $optionKey = null])
-
string
$optionKey: String returns this option null returns all options
Is the wished language avaiable ?
boolean
isAvaiable
(string|Zend_Locale $language)
-
string|Zend_Locale
$language: Language to search for, identical with locale identifier, see Zend_Locale for more information
Sets a new language
void
setLanguage
(string $language)
-
string
$language: Language to set.
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 $translation, [string|Zend_Locale $language = null])
-
string
$translation: Translation string
-
string|Zend_Locale
$language: OPTIONAL Language to use, identical with locale identifier, see Zend_Locale for more information
Load translation data
void
_loadTranslationData
(string|Zend_Locale $language, mixed $data)
-
string|Zend_Locale
$language
-
mixed
$data
Redefined in descendants as: