Search in sources :

Example 1 with ResXFilter

use of org.omegat.filters3.xml.resx.ResXFilter in project omegat by omegat-org.

the class ResXFilterTest method testLoad.

@Test
public void testLoad() throws Exception {
    String f = "test/data/filters/ResX/Resources.resx";
    IProject.FileInfo fi = loadSourceFiles(new ResXFilter(), f);
    checkMultiStart(fi, f);
    checkMulti("This is a text displayed in the UI.", "InfoExperimentStoppingMessage", null, null, null, "This is a comment. It should not be displayed to the translator.");
    checkMulti("One more text", "InfoExperimentStoppingMessage2", null, null, null, "Second comment");
    checkMultiEnd();
}
Also used : IProject(org.omegat.core.data.IProject) ResXFilter(org.omegat.filters3.xml.resx.ResXFilter) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 IProject (org.omegat.core.data.IProject)1 ResXFilter (org.omegat.filters3.xml.resx.ResXFilter)1