Validates that every % in a translation is followed by a non-zero argument index in the form N$ (e.g. More...
Public Member Functions | |
| getIssues (Message $message, string $targetLanguage) | |
Validates that every % in a translation is followed by a non-zero argument index in the form N$ (e.g.
%1$s, %2$d). Field widths without an explicit index (e.g. %10s, %2d) are rejected. The %% escape sequence is accepted by stripping all %% pairs before checking. Use this for projects that require explicit argument indices and forbid positional or bare % signs. @license GPL-2.0-or-later
Definition at line 20 of file PrintfIndexedParameterValidator.php.
| MediaWiki\Extension\Translate\Validation\Validators\PrintfIndexedParameterValidator::getIssues | ( | Message | $message, |
| string | $targetLanguage ) |
Implements MediaWiki\Extension\Translate\Validation\MessageValidator.
Definition at line 21 of file PrintfIndexedParameterValidator.php.