markup-validator
markup-validator copied to clipboard
i18n enhancements
Currently, template directories are found in the order listed in the Language option in validator.conf.
Enhanced patches no longer use the Language option.
By referring to the Accept-Languages header value of the browser, the template directory is found in Accept-Language order.
For examples:
For example, if Accept-Languages is:
Accept-Languages: ko-KR,ko:q=0.7,en-GB:q=0.5,en:q=0.3
The validator will find the template in the following order:
- template/ko_KR
- template/ko
- tempalte/en_GB
- template/en
If there is no template corresponding to Accept-Languages, template/en_US will be used.