Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\Validation\Validators\GettextNewlineValidator Class Reference

Ensures that the translation has the same number of newlines as the source message at the beginning and end of the string. More...

Inheritance diagram for MediaWiki\Extension\Translate\Validation\Validators\GettextNewlineValidator:
MediaWiki\Extension\Translate\Validation\Validators\NewlineValidator MediaWiki\Extension\Translate\Validation\MessageValidator

Public Member Functions

 getIssues (Message $message, string $targetLanguage)
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Extension\Translate\Validation\Validators\NewlineValidator
 getStartingNewLinesCount (string $str)
 
 getEndingNewLineCount (string $str)
 
 validateStartingNewline (int $definitionStartNewline, int $translationStartNewline)
 
 validateEndingNewline (int $definitionEndNewline, int $translationEndNewline)
 
 createIssues (array $failingChecks)
 

Detailed Description

Ensures that the translation has the same number of newlines as the source message at the beginning and end of the string.

This works specifically for GettextFormat.

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

Definition at line 17 of file GettextNewlineValidator.php.

Member Function Documentation

◆ getIssues()

MediaWiki\Extension\Translate\Validation\Validators\GettextNewlineValidator::getIssues ( Message $message,
string $targetLanguage )

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