feat: Initial commit

This commit is contained in:
Vincent Mahnke 2025-11-10 11:30:30 +01:00
commit cfa40c6918
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
24 changed files with 669 additions and 0 deletions

37
.update-locales Executable file
View file

@ -0,0 +1,37 @@
#!/bin/sh
COMPONENTS=pretix/pretix-plugin-congressschedule pretix/pretix-plugin-congressschedule-js
DIR=pretix_congressschedule/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