upgrade to new pretix, remove download, add page links

This commit is contained in:
_Bastler
2023-12-15 22:09:23 +01:00
parent f106e3ce4f
commit d1bd82080a
25 changed files with 528 additions and 137 deletions
+37
View File
@@ -0,0 +1,37 @@
#!/bin/sh
COMPONENTS=pretix/pretix-plugin-pretix-digital-items
DIR=pretix_digital_items/locale
# Renerates .po files used for translating the plugin
set -e
set -x
# Lock Weblate
for c in $COMPONENTS; do
wlc lock $c;
done
# Push changes from Weblate to GitHub
for c in $COMPONENTS; do
wlc commit $c;
done
# Pull changes from GitHub
git pull --rebase
# Update po files itself
make localegen
# Commit changes
git add $DIR/*/*/*.po
git add $DIR/*.pot
git commit -s -m "Update po files
[CI skip]"
# Push changes
git push
# Unlock Weblate
for c in $COMPONENTS; do
wlc unlock $c;
done