The OmegaT plugin attempts to read temporary MS OpenXML files

Issue #50 new
ysavourel created an issue

Initially reported on the main project issues (https://bitbucket.org/okapiframework/okapi/issues/1192)

  • when you open a source file to modify it during translation, MS apps create a temporary file that has a similar name and the same extension *but* is not a file of that format.
  • when you reload the project after modifications, the Okapi plugin wrongly thinks that the temporary file is an MS file, tries to load it, fails, and causes the project to not reload.
  • A similar issue was fixed in the OmegaT native MS Open XML filter by adding a regex to the list of files to ignore, but the Okapi code seems to require a bit more:
    https://sourceforge.net/p/omegat/code/ci/c6425108ca4144bb4235eeb97aa1961664dd516f/#diff-2

Comments (1)

  1. Jean-Christophe Helary

    @Manuel Souto Pico All MS files create a temporary (invisible) file when they are opened. That temporary file has the same extension as the original, and thus the filter tries to read it when reloading the project while the file is opened (which often happens when you correct the source while translating). Since the file is not a valid MSOXML file, the filter errors.

  2. Log in to comment