Generates the standard translation object
Zend_Translate
__construct
(string $adapter, mixed $options, [mixed $locale = null])
-
string
$adapter: - Adapter to use
-
mixed
$options: - Options for this adapter
-
mixed
$locale:
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
(mixed $locale, mixed $options, [ $clear = false], boolean $empty)
-
mixed
$locale:
- locale/language to add to this adapter
-
mixed
$options: - option for this adapter depends on the adapter 'array' - the array to add 'gettext' - the gettext file inclusive the filename
-
boolean
$empty: - add if the language already exists
-
$clear
Returns the adapters name and it's options
Gets the actual language
string
getLanguage
()
Returns the avaiable languages from this adapter
string
getLanguageList
()
Gets the actual locale/language
Zend_Locale|null
getLocale
()
is the wished language avaiable ?
boolean
isAvaiable
(mixed $language)
-
mixed
$language: - is locale or language avaiable
Sets a new adapter
timestamp
setAdapter
(string $adapter, mixed $options, [mixed $locale = null])
-
string
$adapter: - adapter to use
-
mixed
$options: - Adapter options
-
mixed
$locale:
Sets the actual language, can differ from the set locale
void
setLanguage
(string $language)
-
string
$language: - Language to set
Sets a new locale/language
void
setLocale
(mixed $locale)
-
mixed
$locale: - Locale to set
Translate the given string
string
translate
(string $translation, [mixed $locale = null])
-
string
$translation: - string to translate
-
mixed
$locale:
- OPTIONAL locale/language to translate to
Translate the given string
string
_
(string $translation, [mixed $locale = null])
-
string
$translation: - string to translate
-
mixed
$locale:
- OPTIONAL locale/language to translate to