Lang2Po Class Reference

Inherits Maintenance.

List of all members.

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)


Detailed Description

Definition at line 41 of file lang2po.php.


Constructor & Destructor Documentation

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


Member Function Documentation

Lang2Po::applyPot ( langcode  )  [private]

Definition at line 150 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.

Parameters:
string $langcode Code of a language it will process.
array &$messages Array containing the various messages.
Returns:
string Filename where stuff got saved or false.

Definition at line 106 of file lang2po.php.

References $filename, $messages, and poHeader().

Referenced by execute().

Lang2Po::generatePot (  )  [private]

Definition at line 138 of file lang2po.php.

References $IP.

Referenced by execute().

Lang2Po::poHeader (  )  [private]

Return a dummy header for later edition.

Returns:
string A dummy header

Definition at line 78 of file lang2po.php.

Referenced by generatePo().


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

Generated on Sat Apr 30 22:57:40 2011 for MediaWiki by  doxygen 1.5.9