MediaWiki  REL1_19
Lang2Po Class Reference
Inheritance diagram for Lang2Po:
Collaboration diagram for Lang2Po:

List of all members.

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.

Detailed Description

Definition at line 41 of file lang2po.php.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

Lang2Po::applyPot ( langcode) [private]

Definition at line 151 of file lang2po.php.

Referenced by execute().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Lang2Po::generatePo ( langcode,
messages 
) [private]

generate and write a file in .po format.

Parameters:
$langcodeString: code of a language it will process.
$messagesArray containing the various messages.
Returns:
string Filename where stuff got saved or false.

Definition at line 107 of file lang2po.php.

References $dir, $file, $messages, and poHeader().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Lang2Po::generatePot ( ) [private]

Definition at line 139 of file lang2po.php.

References $IP.

Referenced by execute().

Here is the caller graph for this function:

Lang2Po::poHeader ( ) [private]

Return a dummy header for later edition.

Returns:
String: a dummy header

Definition at line 79 of file lang2po.php.

Referenced by generatePo().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: