public function read($category, $locale, $scope)
{
$path = $this->_config['path'];
$file = $this->_file($category, $locale, $scope);
$data = array();
if (file_exists($file)) {
foreach (require $file as $id => $translated) {
if (strpos($id, '|') !== false) {
list($id, $context) = explode('|', $id);
}
$data = $this->_merge($data, compact('id', 'translated', 'context'));
}
}
return $data;
}