Ensures that the translation has the same number of newlines as the source message at the beginning and end of the string. More...
Public Member Functions | |
getIssues (TMessage $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) | |
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 GettextFFS.
Definition at line 17 of file GettextNewlineValidator.php.
MediaWiki\Extension\Translate\Validation\Validators\GettextNewlineValidator::getIssues | ( | TMessage | $message, |
string | $targetLanguage ) |
Reimplemented from MediaWiki\Extension\Translate\Validation\Validators\NewlineValidator.
Definition at line 18 of file GettextNewlineValidator.php.