24 $defArray = explode(
',', $definition );
25 $traArray = explode(
',', $translation );
27 $defCount = count( $defArray );
28 $traCount = count( $traArray );
29 if ( $defCount !== $traCount ) {
33 'translate-checks-format',
38 'translate-checks-parametersnotequal',
39 [
'COUNT', $traCount ],
40 [
'COUNT', $defCount ],
45 $issues->add( $issue );
50 for ( $i = 0; $i < $defCount; $i++ ) {
51 $defItems = array_map(
'trim', explode(
':', $defArray[$i] ) );
52 $traItems = array_map(
'trim', explode(
':', $traArray[$i] ) );
54 if ( count( $traItems ) !== 2 ) {
58 'translate-checks-format',
59 [ [
'MESSAGE', [
'translate-checks-malformed', $traArray[$i] ] ] ]
62 $issues->add( $issue );
66 if ( $traItems[1] !== $defItems[1] ) {
69 'timelist-format-value',
70 'translate-checks-format',
72 [
"<samp><nowiki>$traItems[1] !== $defItems[1]</nowiki></samp>" ]
75 $issues->add( $issue );