File_Gettext
GNU gettext file reader and writer.
#################################################################
Located in /I18N/core/Gettext/TGettext.php (line 59)
| Class | Description |
|---|---|
| TGettext_MO | File_Gettext_MO |
| TGettext_PO | File_Gettext_PO |
Factory
fromArray
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',
- // ...
- )
- )
meta2array
poFile2moFile
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.
prepare
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',
- // ...
- )
- )
toMO
toPO
Documentation generated on Sun, 04 Jun 2006 18:59:24 -0400 by phpDocumentor 1.3.0RC4