- removed milestone
Unable to set <EMPTY> translation in OmegaT with Okapi filter OpenXML
Preconditions
- Install the Okapi filter plugin for OmegaT, i.e. put the
okapiFiltersForOmegaT-1.9-1.41.0.jar
file in theplugins
folder of OmegaT. - Create an OmegaT project and add a Word file that contains at least a couple of sentences.
Steps to reproduce
- In the first segment, go to Edit > Set empty translation
- Move to another segment.
Expected results
- OmegaT displays
<EMPTY>
in the segment where the empty translation has been set. - When exporting the target Word file, there’s nothing in the position of that segment.
Actual results
- OK (as expected)
- When exporting the target file, there’s the source text in the position of that segment.
Additional info
The filter configuration file for the Okapi XLIFF filter has an option to allow for an empty translation, but I am not aware of any such option in the equivalent configuration file for the OpenXML filter (i.e. okf_openxml@foo.fprm
).
Comments (3)
-
-
I am also looking for a way to allow empty targets while using the OpenXML filter. The issue is not related to OmegaT’s plugin but to the OpenXML filter.
It appears that making this change is not very invasive and it consists of making a few changes to the StyledTextSkeletonWriter class and ConditionalParameters.
Apparently, the method getTargetForOutput() inside the class does exactly what we want to avoid (use the source when the target is empty).
So if I understand this correctly, a possible solution would be to make this behavior conditional and add a new flag to the ConditionalParameters class, much like for the XLIFF filter, like Manuel suggested.
We will work on a PR with these changes.
-
reporter Transferred to Omegat-plugin issue #41
- Log in to comment