diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Translate/Adapter/Ini.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Translate/Adapter/Ini.php Fri Mar 11 15:05:35 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"; + } +}