Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
Private Member Functions | |
poHeader () | |
Return a dummy header for later edition. | |
generatePo ($langcode, $messages) | |
generate and write a file in .po format. | |
generatePot () | |
applyPot ($langcode) |
Definition at line 41 of file lang2po.php.
Lang2Po::__construct | ( | ) |
Default constructor.
Children should call this if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 42 of file lang2po.php.
References Maintenance::addOption().
Lang2Po::applyPot | ( | $ | langcode | ) | [private] |
Lang2Po::execute | ( | ) |
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 48 of file lang2po.php.
References applyPot(), Maintenance::error(), generatePo(), generatePot(), Maintenance::getOption(), and Maintenance::output().
Lang2Po::generatePo | ( | $ | langcode, | |
$ | messages | |||
) | [private] |
generate and write a file in .po format.
string | $langcode Code of a language it will process. | |
array | &$messages Array containing the various messages. |
Definition at line 106 of file lang2po.php.
References $filename, $messages, and poHeader().
Referenced by execute().
Lang2Po::generatePot | ( | ) | [private] |
Lang2Po::poHeader | ( | ) | [private] |
Return a dummy header for later edition.
Definition at line 78 of file lang2po.php.
Referenced by generatePo().