XLIFFWriter overrides placeholderMode value
Created by: Anonymous
Original issue 233 created by sh...@my-family.us on 2012-05-21T15:39:56.000Z:
What steps will reproduce the problem?
- Set the placeholderMode to 'false' on the XLIFFWriter step
- Run the pipeline on an HTML file with ** tags
What is the expected output? What do you see instead?
Expect the bold tags to be marked by a but they are being marked by instead.
What version of the product are you using? On what operating system?
0.16 on Linux
Please provide any additional information below.
diff --git a/okapi/core/src/main/java/net/sf/okapi/common/filterwriter/XLIFFWriter.java b/okapi/core/src/main/java/net/sf/okapi/common/filterwriter/XLIFFWriter.java
index fc38265..c0bc144 100644
--- a/okapi/core/src/main/java/net/sf/okapi/common/filterwriter/XLIFFWriter.java
+++ b/okapi/core/src/main/java/net/sf/okapi/common/filterwriter/XLIFFWriter.java
@ @ -92,7 +92,7 @ @ public class XLIFFWriter implements IFilterWriter {
private boolean useSourceForTranslated = false;
private boolean escapeGt = false;
-
private boolean placeholderMode = false;
-
private boolean placeholderMode = true; private boolean includeNoTranslate = true; private boolean setApprovedAsNoTranslate = false; private boolean copySource = true;
@ @ -653,9 +653,6 @ @ public class XLIFFWriter implements IFilterWriter {
// trgLoc was set before
// fwOutputPath was set before
create(fwOutputPath, null, resource.getLocale(), trgLoc, resource.getMimeType(), resource.getName(), null);
-
// Output options for IFilterWriter mode -
placeholderMode = true; // Additional variables specific to IFilterWriter mode fwInputEncoding = resource.getEncoding();