- changed status to open
XLIFFWriter overrides placeholderMode value
Original [issue 233](https://code.google.com/p/okapi/issues/detail?id=233) created by sh...@my-family.us on 2012-05-21T15:39:56.000Z:
What steps will reproduce the problem? 1. Set the placeholderMode to 'false' on the XLIFFWriter step 2. 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 <bpt> but they are being marked by <g> 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();
Comments (5)
-
Account Deleted -
Account Deleted Comment [2.](https://code.google.com/p/okapi/issues/detail?id=233#c2) originally posted by @ysavourel on 2012-05-21T16:41:41.000Z:
-
Account Deleted - changed status to resolved
Comment [3.](https://code.google.com/p/okapi/issues/detail?id=233#c3) originally posted by @ysavourel on 2012-05-21T17:33:41.000Z:
This issue was closed by revision 888948afd627.
-
Account Deleted Comment [4.](https://code.google.com/p/okapi/issues/detail?id=233#c4) originally posted by @ysavourel on 2012-05-21T19:08:39.000Z:
Fixed. the change is in the dev branch.
-
Account Deleted Comment [5.](https://code.google.com/p/okapi/issues/detail?id=233#c5) originally posted by @ysavourel on 2012-07-12T14:57:37.000Z:
This issue was closed by revision 888948afd627.
- Log in to comment
Comment [1.](https://code.google.com/p/okapi/issues/detail?id=233#c1) originally posted by @ysavourel on 2012-05-21T16:41:23.000Z:
It seems that was set when only Tikal was using this. I'll check what side effect such change would have.