|
MediaWiki
REL1_19
|


Public Member Functions | |
| __construct () | |
| Default constructor. | |
| execute () | |
| Do the actual work. | |
Private Member Functions | |
| applyPot ($langcode) | |
| generatePo ($langcode, $messages) | |
| generate and write a file in .po format. | |
| generatePot () | |
| poHeader () | |
| Return a dummy header for later edition. | |
Definition at line 41 of file lang2po.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 42 of file lang2po.php.
References Maintenance\addOption().

| Lang2Po::applyPot | ( | $ | langcode | ) | [private] |
Definition at line 151 of file lang2po.php.
Referenced by execute().

| 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.
| $langcode | String: code of a language it will process. |
| $messages | Array containing the various messages. |
Definition at line 107 of file lang2po.php.
References $dir, $file, $messages, and poHeader().
Referenced by execute().


| Lang2Po::generatePot | ( | ) | [private] |
Definition at line 139 of file lang2po.php.
References $IP.
Referenced by execute().

| Lang2Po::poHeader | ( | ) | [private] |
Return a dummy header for later edition.
Definition at line 79 of file lang2po.php.
Referenced by generatePo().
