protected function _loadTranslationData($filename,
$locale, array
$options = array
()) { $this->_data = array
();
if (!
is_readable($filename)) { throw new Zend_Translate_Exception('Translation file \'' .
$filename . '\' is not readable.'
);
} if (isset($options['useId'
])) { $this->_useId =
(boolean) $options['useId'
];
} $encoding =
$this->
_findEncoding($filename);
$this->_file =
xml_parser_create($encoding);
xml_set_object($this->_file,
$this);
xml_parser_set_option($this->_file, XML_OPTION_CASE_FOLDING, 0
);
xml_set_element_handler($this->_file, "_startElement", "_endElement"
);
xml_set_character_data_handler($this->_file, "_contentElement"
);
if (!
xml_parse($this->_file,
file_get_contents($filename))) { $ex =
sprintf('XML error: %s at line %d of file %s',
xml_error_string(xml_get_error_code($this->_file
)),
xml_get_current_line_number($this->_file
),
$filename);