Свойство | Тип | Описание | |
---|---|---|---|
$file | string | file path | |
$meta | array | associative array containing meta information like project name or content type | |
$strings | array | associative array with all [msgid => msgstr] entries |
Метод | Описание | |
---|---|---|
factory ( string $format, string $file = '' ) : object | Factory | |
fromArray ( array $array ) : boolean | fromArray | |
meta2array ( string $meta ) : array | meta2array | |
poFile2moFile ( string $pofile, string $mofile ) : mixed | poFile2moFile | |
prepare ( string $string, boolean $reverse = false ) : string | prepare | |
toArray ( ) : array | toArray | |
toMO ( ) : object | toMO | |
toPO ( ) : object | toPO |
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',
...
)
)
static public meta2array ( string $meta ) : array | ||
$meta | string | |
Результат | array |
array(
'meta' => array(
'Content-Type' => 'text/plain; charset=iso-8859-1',
'Last-Translator' => 'Michael Wallner ',
'PO-Revision-Date' => '2004-07-21 17:03+0200',
'Language-Team' => 'German ',
),
'strings' => array(
'All rights reserved' => 'Alle Rechte vorbehalten',
'Welcome' => 'Willkommen',
...
)
)
protected array $meta | ||
Результат | array |
protected array $strings | ||
Результат | array |