diff -r 000000000000 -r 4eba9c11703f web/Zend/Translate/Adapter/Array.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Translate/Adapter/Array.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,81 @@ +_data = array(); + if (!is_array($data)) { + if (file_exists($data)) { + ob_start(); + $data = include($data); + ob_end_clean(); + } + } + if (!is_array($data)) { + require_once 'Zend/Translate/Exception.php'; + throw new Zend_Translate_Exception("Error including array or file '".$data."'"); + } + + if (!isset($this->_data[$locale])) { + $this->_data[$locale] = array(); + } + + $this->_data[$locale] = $data + $this->_data[$locale]; + return $this->_data; + } + + /** + * returns the adapters name + * + * @return string + */ + public function toString() + { + return "Array"; + } +}