private function setItems()
{
list($query, $parameters) = $this->buildQuery();
// get locale from the database
$items = (array) $this->get('database')->getRecords($query, $parameters);
// init
$this->locale = array();
// group by application, module, type and name
foreach ($items as $item) {
$this->locale[$item['application']][$item['module']][$item['type']][$item['name']][] = $item;
}
// no need to keep this around
unset($items);
}