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|array $data,
string|Zend_Locale $locale, [
$options =
array()])
-
string|array
$data: Translation data
-
string|Zend_Locale
$locale: Locale/Language to add to this adapter
-
array
$options: OPTIONAL Options to use
Generates the standard translation object
Zend_Translate
__construct
(
string $adapter,
array $options, [
string|Zend_Locale $locale =
null])
-
string
$adapter: Adapter to use
-
array
$options: Options for this adapter to set Depends on the Adapter
-
string|Zend_Locale
$locale: OPTIONAL locale to use
Returns the adapters name and it's options
Returns all avaiable locales/anguages from this adapter
array
getList
()
Returns the actual set locale/language
is the wished language avaiable ?
-
string|Zend_Locale
$locale: Is the locale/language avaiable
Checks if a given string can be translated 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 a new adapter
void
setAdapter
(
string $adapter,
string|array $data, [
string|Zend_Locale $locale =
null], [
$options =
array()])
-
string
$adapter: Adapter to use
-
string|array
$data: Translation data
-
string|Zend_Locale
$locale: OPTIONAL locale to use
-
array
$options: OPTIONAL Options to use
Sets a new locale/language
-
string|Zend_Locale
$locale: Locale/Language to set for translations
Translate the given string
string
translate
(
string $messageId, [
string|Zend_Locale $locale =
null])
-
string
$messageId: Original to translate
-
string|Zend_Locale
$locale: OPTIONAL locale/language to translate to
Translate the given string
string
_
(
string $messageId, [
string|Zend_Locale $locale =
null])
-
string
$messageId: Original to translate
-
string|Zend_Locale
$locale: OPTIONAL locale/language to translate to