mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-08 04:26:55 +03:00
chore: Add width option and package name to xgettext and msgmerge scripts
This commit is contained in:
@@ -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."
|
||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user