I created a project to to translate a literary text from an old version of a language to its contemporary version. As this is the same language (Neapolitan), I used the same language code (nap) in the Source and Target fields when creating the project. This did not throw any warnings and I translated the first chapter over the following days, without ever closing OmegaT.
However, when I closed it and then reopened, I found out that all my translated segments had gone - the whole chapter was highlighted in blue instead. The glossary I added was still present, and occasionally the fuzzy matching would identify some translation memories, so I could recover some of my work. Rolling back to backups didn't fix the issue.
What fixed the issue was creating a new project and using two different language codes in the Source and Target fields. So it seems that OmegaT can't have the same language code in those fields; however, this is not explicit.
Would it be possible to:
1. throw an error if the user inserts the same language code in the two fields when creating the project
2. or at least mention this in the user manual?
Diff:
Thank you Andrea for the tracker. This item will handle your second point.
For the first one, should be registered separately in the Feature request tracker, with a link to this one.
I’m working on it on https://github.com/omegat-org/omegat/tree/topic/jc/docfix/6.0.1
https://github.com/omegat-org/omegat/pull/1266
https://github.com/omegat-org/omegat/pull/1266