Automatically update Weblate components on mdwn file add/rename/delete in tails.bo git
Originally created by @emmapeel on #15185 (Redmine)
Commits that make weblate suffer are exemplified with:
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: sysadmin#15082 (closed)
Subtasks
Related issues
- Related to sysadmin#15356 (closed)
- Related to sysadmin#15402 (closed)
- Related to sysadmin#15679 (closed)
- Related to sysadmin#15190 (closed)
- Related to sysadmin#15674 (closed)
- Related to sysadmin#16225 (closed)
-
Blocked by sysadmin#15624 (closed)