Added translation base

This commit is contained in:
2026-07-11 16:53:25 +01:00
parent 614c597d65
commit 2735e6e96b
17 changed files with 517 additions and 41 deletions

19
scripts/i18n_extract.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
DOMAIN="dynalab"
SOURCE_DIR="src/dynalab"
LOCALES_DIR="locales"
POT_FILE="$LOCALES_DIR/$DOMAIN.pot"
mkdir -p "$LOCALES_DIR"
xgettext \
--language=Python \
--keyword=_ \
--keyword=gettext_ \
--from-code=UTF-8 \
--output="$POT_FILE" \
$(find "$SOURCE_DIR" -name "*.py" | sort)
echo "Generated $POT_FILE"