PoImporter Class Reference

Parses a po file that has been exported from Mediawiki. More...

List of all members.

Public Member Functions

 __construct ($file)
 setProgressCallback ($callback)
 parse ()
 Parses relevant stuff from the po file.

Protected Member Functions

 reportProgress ($text, $channel, $severity= 'status')
 initMessages ($id, $code)
 Loads translations for comparison.

Protected Attributes

 $progressCallback

Private Attributes

 $file = false

Detailed Description

Parses a po file that has been exported from Mediawiki.

Other files are not supported.

Definition at line 88 of file poimport.php.


Constructor & Destructor Documentation

PoImporter::__construct ( file  ) 
Parameters:
$file File to import

Definition at line 101 of file poimport.php.


Member Function Documentation

PoImporter::initMessages ( id,
code 
) [protected]

Loads translations for comparison.

Parameters:
string $id Id of MessageGroup.
string $code Language code.
Returns:
MessageCollection

Definition at line 124 of file poimport.php.

Referenced by parse().

Here is the call graph for this function:

PoImporter::parse (  ) 

Parses relevant stuff from the po file.

Returns:
array|bool

Definition at line 137 of file poimport.php.

Here is the call graph for this function:

PoImporter::reportProgress ( text,
channel,
severity = 'status' 
) [protected]
See also:
Maintenance::output for param docs

Definition at line 110 of file poimport.php.

Referenced by parse().

PoImporter::setProgressCallback ( callback  ) 

Definition at line 105 of file poimport.php.


Member Data Documentation

PoImporter::$file = false [private]

Definition at line 96 of file poimport.php.

Referenced by __construct().

PoImporter::$progressCallback [protected]

Definition at line 90 of file poimport.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:51 2013 for MediaWiki Translate Extension by  doxygen 1.6.3