Skip to content

Automatically update Weblate components on mdwn file add/rename/delete in tails.bo git

Commits that make weblate suffer are exemplified with:

5de9ad30fc30213bacbce79bddf8d81eee3d83a7

in which we have many lines like:

Rename PO files from renamed source pages

diff —git a/wiki/src/install/debian/clone/overview.de.po b/wiki/src/install/debian/clone-overview.de.po
similarity index 100%
rename from wiki/src/install/debian/clone/overview.de.po
rename to wiki/src/install/debian/clone-overview.de.po
diff —git a/wiki/src/install/debian/clone/overview.fa.po b/wiki/src/install/debian/clone-overview.fa.po
similarity index 100%
rename from wiki/src/install/debian/clone/overview.fa.po
rename to wiki/src/install/debian/clone-overview.fa.po
diff —git a/wiki/src/install/debian/clone/overview.fr.po b/wiki/src/install/debian/clone-overview.fr.po
similarity index 100%
rename from wiki/src/install/debian/clone/overview.fr.po
rename to wiki/src/install/debian/clone-overview.fr.po
diff —git a/wiki/src/install/debian/clone/overview.it.po b/wiki/src/install/debian/clone-overview.it.po
similarity index 100%

This creates a problem in Weblate, as there is an old component (for example wiki/src/install/debian/clone/overview.*.po in the first line) that now is ‘orphaned’, specially in the case of files that are not part of the main repo, as in the other languages that are not part of this original commit (i.e. wiki/src/install/debian/clone/overview.tr.po )

Care should be taken to move these files in Weblate and see no translations are being lost when moving files, and also delete any stale files before importing the translations.

Attachments

Parent Task: #15082 (closed)

Subtasks

Related issues

Original created by @emmapeel on 15185 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information