I'm trying to maintain several translations of a project on a wiki. The wiki doesn't support translation, but I can import/export using text files. So for simplicity's sake, let's consider every file in the documentation is a simple text file.
It goes like this:
- I write the wiki document in English.
- I download it (a tool does that for me, hopefully).
- The new file is copied in directories for other translations (it's new, so it's not translated yet).
- The translator translates the new wiki page in his/her own language. It's still on disk by that time, still in a txt file.
- Optionally, the translator uploads the newly translated file on the web.
So far, so good.
- I have developed a new feature and modified the English wiki page.
- I download it.
- I update the translated version... wait, it already exist, I can't just write the file to delete everything the translator did at step 4!
So I would like to have a way to create a partly translated file that will take into account:
- The file (in English) of the document when it was translated.
- The file (in whatever language) of the same file at the same moment.
- My newly modified file (in English).
It looks like a good use case for diff3. But diff3 doesn't really fancy working on files that have changed that much. True, both English versions can be compared, but the translated version is too much different, and conflicts are generated everywhere.
My approach to translation may be a bit strange, I've tried to find other strategies, but it has been drown in commercial alternatives, which are obviously not my first choice if I can help it.
I hope my explanations were helpful. Don't hesitate if I can specify a bit more.