ci.yml used to include:
- run: |
make
python manage.py add-translation-notes
However, I noticed a bug a few weeks ago. If a page was moved in the English version, there would be a broken link in a translated version – because the command downloads the last fully translated text, which still contains the old URL.
Instead, the insertion of notes should be performed during the Sphinx build. There is no way to use the last fully translated text without encountering the above issue, so we'll just explain in the note that some paragraphs might be in English.
This Sphinx documentation is relevant to writing a hook:
ci.yml used to include:
However, I noticed a bug a few weeks ago. If a page was moved in the English version, there would be a broken link in a translated version – because the command downloads the last fully translated text, which still contains the old URL.
Instead, the insertion of notes should be performed during the Sphinx build. There is no way to use the last fully translated text without encountering the above issue, so we'll just explain in the note that some paragraphs might be in English.
This Sphinx documentation is relevant to writing a hook: