Ensures that the translation has the same number of newlines as the source message at the beginning of the string. More...
Public Member Functions | |
getIssues (Message $message, string $targetLanguage) | |
Protected Member Functions | |
getStartingNewLinesCount (string $str) | |
getEndingNewLineCount (string $str) | |
validateStartingNewline (int $definitionStartNewline, int $translationStartNewline) | |
validateEndingNewline (int $definitionEndNewline, int $translationEndNewline) | |
createIssues (array $failingChecks) | |
Ensures that the translation has the same number of newlines as the source message at the beginning of the string.
Definition at line 18 of file NewlineValidator.php.
|
protected |
Definition at line 85 of file NewlineValidator.php.
|
protected |
Definition at line 37 of file NewlineValidator.php.
MediaWiki\Extension\Translate\Validation\Validators\NewlineValidator::getIssues | ( | Message | $message, |
string | $targetLanguage ) |
Implements MediaWiki\Extension\Translate\Validation\MessageValidator.
Definition at line 19 of file NewlineValidator.php.
|
protected |
Definition at line 33 of file NewlineValidator.php.
|
protected |
Definition at line 63 of file NewlineValidator.php.
|
protected |
Definition at line 41 of file NewlineValidator.php.