Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupProcessing\CsvTranslationImporter Class Reference

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.
 

Detailed Description

Parse, validate and import translations from a CSV file.

Since
2022.06 @license GPL-2.0-or-later
Author
Abijeet Patro

Definition at line 23 of file CsvTranslationImporter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupProcessing\CsvTranslationImporter::__construct ( WikiPageFactory $wikiPageFactory)

Definition at line 26 of file CsvTranslationImporter.php.

Member Function Documentation

◆ importData()

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 129 of file CsvTranslationImporter.php.

◆ parseFile()

MediaWiki\Extension\Translate\MessageGroupProcessing\CsvTranslationImporter::parseFile ( string $csvFilePath)

Parse and validate the CSV file.

Definition at line 31 of file CsvTranslationImporter.php.


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