Parse, validate and import translations from a CSV file. More...
Public Member Functions | |
__construct (WikiPageFactory $wikiPageFactory) | |
parseFile (string $csvFilePath) | |
Parse and validate the CSV file. | |
importData (array $messagesWithTranslations, Authority $authority, string $comment, ?callable $progressReporter=null) | |
Import the data returned from the parseFile method. | |
Parse, validate and import translations from a CSV file.
Definition at line 23 of file CsvTranslationImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\CsvTranslationImporter::__construct | ( | WikiPageFactory | $wikiPageFactory | ) |
Definition at line 27 of file CsvTranslationImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\CsvTranslationImporter::importData | ( | array | $messagesWithTranslations, |
Authority | $authority, | ||
string | $comment, | ||
?callable | $progressReporter = null ) |
Import the data returned from the parseFile method.
Definition at line 130 of file CsvTranslationImporter.php.
MediaWiki\Extension\Translate\MessageGroupProcessing\CsvTranslationImporter::parseFile | ( | string | $csvFilePath | ) |
Parse and validate the CSV file.
Definition at line 32 of file CsvTranslationImporter.php.