chore: Add width option and package name to xgettext and msgmerge scripts

This commit is contained in:
Andrey Petelin
2025-09-30 19:29:46 +05:00
parent 5c51d99d73
commit 3b95ac2bc3
2 changed files with 3 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ if [ -f "$POFILE" ]; then
else else
echo "Creating new $POFILE using msginit" echo "Creating new $POFILE using msginit"
mkdir -p "$PODIR/$LANG" mkdir -p "$PODIR/$LANG"
msginit --no-translator --locale="$LANG" --input="$POTFILE" --output-file="$POFILE" msginit --no-translator --locale="$LANG" --width=120 --input="$POTFILE" --output-file="$POFILE"
fi fi
echo "Translation file for $LANG updated." echo "Translation file for $LANG updated."

View File

@@ -17,6 +17,8 @@ xgettext --language=JavaScript \
--keyword=_ \ --keyword=_ \
--from-code="$ENCODING" \ --from-code="$ENCODING" \
--output="$OUT_POT" \ --output="$OUT_POT" \
--width=120 \
--package-name="PODKOP" \
"${FILES[@]}" "${FILES[@]}"
echo "POT template generated: $OUT_POT" echo "POT template generated: $OUT_POT"