Closed carlo94it closed 10 years ago
@nickvergessen why there is $this->printErrorLevel($this->output);
on the line 136 of file ValidateRunner.php?
It print always the letter N, but why? It don't validate anything.
N means that there was a notice error. Add --debug to see thr notice messages in the report
Basically the message about plurals should be printed before the output starts
Yes, but N is printed before starting validating.
Please post the complete output you get
With debug enabled:
Running Language Pack Validator on language it.
Setup ValidatorRunner
Validating FileList...
NUsing plural rule #1 for validation.
Validating File: language/it/acp/attachments.php
F
Validating File: language/it/acp/ban.php
N
Validating File: language/it/acp/board.php
F
Validating File: language/it/acp/bots.php
.
[ remove ]
Without debug:
Running Language Pack Validator on language it.
NFNF.F..FF..F.N....WFE...F...................................... 64 / 96 ( 66%)
...............FF.F..F..FF..F....
Test results for language pack:
[ removed ]
In this case, if you manually count the tests, they are 97 and not 96, because the first N is printed by default.
After investigating, I can say that the first value is the result of FileListValidator.
We need to move the FileListValidator result after plural information (with debug enabled), and increase by 1 the number of tests. Do you agree?
When running Validator with debug, it print:
The letter "N" which specifies the error level is on the same line of the phrase that identifies the plural rule.