Parses a po file that has been exported from Mediawiki. More...
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 |
Parses a po file that has been exported from Mediawiki.
Other files are not supported.
Definition at line 88 of file poimport.php.
PoImporter::__construct | ( | $ | file | ) |
$file | File to import |
Definition at line 101 of file poimport.php.
PoImporter::initMessages | ( | $ | id, | |
$ | code | |||
) | [protected] |
Loads translations for comparison.
string | $id Id of MessageGroup. | |
string | $code Language code. |
Definition at line 124 of file poimport.php.
Referenced by parse().
PoImporter::parse | ( | ) |
Parses relevant stuff from the po file.
Definition at line 137 of file poimport.php.
PoImporter::reportProgress | ( | $ | text, | |
$ | channel, | |||
$ | severity = 'status' | |||
) | [protected] |
Definition at line 110 of file poimport.php.
Referenced by parse().
PoImporter::setProgressCallback | ( | $ | callback | ) |
Definition at line 105 of file poimport.php.
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.