Todo List
GNU gettext file reader and writer.
#################################################################
[line 88]
[line 80]
associative array containing meta information like project name or content type
[line 69]
associative array with all [msgid => msgstr] entries
object Returns factory( string $format, [string $file = ''])
bool fromArray( array $array)
Assigns meta info and strings from an array of a structure like that:
array( 'meta' => array( 'Content-Type' => 'text/plain; charset=iso-8859-1', 'Last-Translator' => 'Michael Wallner <mike@iworks.at>', 'PO-Revision-Date' => date('Y-m-d H:iO'), 'Language-Team' => 'German <mail@example.com>', ), 'strings' => array( 'All rights reserved' => 'Alle Rechte vorbehalten', 'Welcome' => 'Willkommen', // ... ) )
array meta2array( string $meta)
mixed poFile2moFile( string $pofile, string $mofile)
That's a simple fake of the 'msgfmt' console command. It reads the contents of a GNU PO file and saves them to a GNU MO file.
string prepare( string $string, [bool $reverse = false])
array toArray( )
Returns meta info and strings as an array of a structure like that:
array( 'meta' => array( 'Content-Type' => 'text/plain; charset=iso-8859-1', 'Last-Translator' => 'Michael Wallner <mike@iworks.at>', 'PO-Revision-Date' => '2004-07-21 17:03+0200', 'Language-Team' => 'German <mail@example.com>', ), 'strings' => array( 'All rights reserved' => 'Alle Rechte vorbehalten', 'Welcome' => 'Willkommen', // ... ) )
object File_Gettext_MO toMO( )
object File_Gettext_PO toPO( )