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 $options,
string|Zend_Locale $locale, [
boolean $clear =
false])
-
string|array
$options: Option for this adapter, depends on the adapter
-
string|Zend_Locale
$locale: Locale/Language to add to this adapter
-
boolean
$clear: If true the new translation is added to the existing one
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
Sets a new adapter
void
setAdapter
(
string $adapter,
array $options, [
string|Zend_Locale $locale =
null])
-
string
$adapter: Adapter to use
-
array
$options: Options for the adapter to set
-
string|Zend_Locale
$locale: OPTIONAL locale 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