Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
PrintfValidator.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\Validation\Validators;
5
13 public function __construct() {
14 parent::__construct( '/%(\d+\$)?(\.\d+)?[sduf]/U' );
15 }
16}
A generic regex validator and insertable that can be reused by other classes.
A validator that checks for missing and unknown printf formatting characters in translations.