diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Translate/Adapter/Ini.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Translate/Adapter/Ini.php Thu Jan 20 19:30:54 2011 +0100 @@ -0,0 +1,74 @@ +_data = array(); + if (!file_exists($data)) { + require_once 'Zend/Translate/Exception.php'; + throw new Zend_Translate_Exception("Ini file '".$data."' not found"); + } + + $inidata = parse_ini_file($data, false); + if (!isset($this->_data[$locale])) { + $this->_data[$locale] = array(); + } + + $this->_data[$locale] = array_merge($this->_data[$locale], $inidata); + return $this->_data; + } + + /** + * returns the adapters name + * + * @return string + */ + public function toString() + { + return "Ini"; + } +}