Special page to import Gettext (.po) files exported using Translate extension. More...
Public Member Functions | |
__construct () | |
Set up and fill some dependencies. | |
execute ($parameters) | |
Special page entry point. | |
Protected Member Functions | |
checkError ($msg) | |
Checks for error state from the return value of loadFile and parseFile functions. | |
outputForm () | |
Constructs and outputs file input form with supported methods. | |
loadFile (&$filedata) | |
Try to get the file data from any of the supported methods. | |
setCachedData ($data) | |
getCachedData () | |
deleteCachedData () |
Special page to import Gettext (.po) files exported using Translate extension.
Does not support generic Gettext files.
Definition at line 17 of file SpecialImportTranslations.php.
SpecialImportTranslations::__construct | ( | ) |
Set up and fill some dependencies.
Definition at line 21 of file SpecialImportTranslations.php.
SpecialImportTranslations::checkError | ( | $ | msg | ) | [protected] |
Checks for error state from the return value of loadFile and parseFile functions.
Prints the error and the form and returns true if there is an error. Returns false and does nothing if there is no error.
$msg | array |
Definition at line 105 of file SpecialImportTranslations.php.
Referenced by execute().
SpecialImportTranslations::deleteCachedData | ( | ) | [protected] |
Definition at line 232 of file SpecialImportTranslations.php.
Referenced by execute().
SpecialImportTranslations::execute | ( | $ | parameters | ) |
Special page entry point.
Proceed to loading and parsing if possible
Definition at line 28 of file SpecialImportTranslations.php.
SpecialImportTranslations::getCachedData | ( | ) | [protected] |
Definition at line 226 of file SpecialImportTranslations.php.
Referenced by execute().
SpecialImportTranslations::loadFile | ( | &$ | filedata | ) | [protected] |
Try to get the file data from any of the supported methods.
$filedata |
Definition at line 162 of file SpecialImportTranslations.php.
Referenced by execute().
SpecialImportTranslations::outputForm | ( | ) | [protected] |
Constructs and outputs file input form with supported methods.
Ugly but necessary form building ahead, ohoy
Definition at line 126 of file SpecialImportTranslations.php.
Referenced by checkError(), and execute().
SpecialImportTranslations::setCachedData | ( | $ | data | ) | [protected] |
Definition at line 221 of file SpecialImportTranslations.php.
Referenced by execute().