Generates the adapter
Zend_Translate_Adapter
__construct
(
string|array $data, [
string|Zend_Locale $locale =
null], [
$options =
array()])
-
string|array
$data: Translation data for this adapter
-
string|Zend_Locale
$locale: OPTIONAL Locale/Language to set, identical with Locale identifiers see Zend_Locale for more information
-
string|array
$options: Options for the adaptor
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, [
$options =
array()])
-
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
-
array
$options: OPTIONAL Option for this Adapter
Returns the avaiable languages from this adapter
array
getList
()
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 ?
-
string|Zend_Locale
$locale: Language to search for, identical with locale identifier, see Zend_Locale for more information
Checks if a string is translated within the source or not returns boolean
boolean
isTranslated
(
string $messageId, [
boolean $original =
false], [
string|Zend_Locale $locale =
null])
-
string
$messageId: Translation string
-
boolean
$original: 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
$locale: OPTIONAL Locale/Language to use, identical with locale identifier, see Zend_Locale for more information
Sets new adapter options
void
setOptions
([ $options = array()])
-
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, [
$options =
array()])
Redefined in descendants as: