20 lines
356 B
Bash
Executable File
20 lines
356 B
Bash
Executable File
#!/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"
|