array(
'meta' => array(
'Content-Type' => 'text/plain; charset=iso-8859-1',
'Last-Translator' => 'Michael Wallner ',
'PO-Revision-Date' => date('Y-m-d H:iO'),
'Language-Team' => 'German ',
),
'strings' => array(
'All rights reserved' => 'Alle Rechte vorbehalten',
'Welcome' => 'Willkommen',
...
)
)
function fromArray($array)
{
if (!array_key_exists('strings', $array)) {
if (count($array) != 2) {
return false;
} else {
list($this->meta, $this->strings) = $array;
}
} else {
$this->meta = @$array['meta'];
$this->strings = @$array['strings'];
}
return true;
}