When running gradle test, HTMLFilter2Test#testLoad failed on non-English platform
expected:<[Tag: HTML Attribute:] lang> but was:<[要素: HTML 属性:] lang>
Expected :Tag: HTML Attribute: lang
Actual :要素: HTML 属性: lang
<Click to see difference>
org.junit.ComparisonFailure: expected:<[Tag: HTML Attribute:] lang> but was:<[要素: HTML 属性:] lang>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.junit.Assert.assertEquals(Assert.java:146)
at org.omegat.filters.TestFilterBase.checkMulti(TestFilterBase.java:465)
at org.omegat.filters.HTMLFilter2Test.testLoad(HTMLFilter2Test.java:69)
It is because filters2/html2/FilterVisitor class got localized message for the target string.
```
String comment = OStrings.getString("HTMLFILTER_TAG") + " " + tag.getTagName() + " "
+ OStrings.getString("HTMLFILTER_ATTRIBUTE") + " " + key;
```
It is better to configure Gradle to set language to English for running test.
If the test is testing the comment, and the comment is intended to be localized, then the test should account for that.
There is alternative solution that change a test case expectation
https://github.com/omegat-org/omegat/pull/173
merged [30dfa5]
Related
Commit: [30dfa5]
released 6.0