/** * Add translations * * This may be a new language or additional content for an existing language * If the key 'clear' is true, then translations for the specified * language will be replaced and added otherwise * * @param array|Zend_Config $options Options and translations to be added * @throws Zend_Translate_Exception * @return Zend_Translate_Adapter Provides fluent interface */ public function addTranslation($options = array()) { $tempOptions = $options; foreach ($tempOptions['content'] as $content) { $options['content'] = $content; parent::addTranslation($options); } return $this; }
/** * 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 * * @param string|array $data Translation data * @param string|Zend_Locale $locale Locale/Language to add to this adapter * @param array $options OPTIONAL Options to use */ public function addTranslation($data, $locale, array $options = array()) { $this->_adapter->addTranslation($data, $locale, $options); }
/** * 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 * * @param string|array $options Option for this adapter, depends on the adapter * @param string|Zend_Locale $locale Locale/Language to add to this adapter * @param boolean $clear If true the new translation is added to the existing one */ public function addTranslation($options, $locale, $clear = false) { $this->_adapter->addTranslation($options, $locale, $clear); }