From 3b95ac2bc3019e1eddbe7aabf64acebd6f634dd2 Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Tue, 30 Sep 2025 19:29:46 +0500 Subject: [PATCH] chore: Add width option and package name to xgettext and msgmerge scripts --- luci-app-podkop/msgmerge.sh | 2 +- luci-app-podkop/xgettext.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/luci-app-podkop/msgmerge.sh b/luci-app-podkop/msgmerge.sh index 7e0c9dd..b9034de 100644 --- a/luci-app-podkop/msgmerge.sh +++ b/luci-app-podkop/msgmerge.sh @@ -23,7 +23,7 @@ if [ -f "$POFILE" ]; then else echo "Creating new $POFILE using msginit" 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 echo "Translation file for $LANG updated." \ No newline at end of file diff --git a/luci-app-podkop/xgettext.sh b/luci-app-podkop/xgettext.sh index a981da7..43fe725 100644 --- a/luci-app-podkop/xgettext.sh +++ b/luci-app-podkop/xgettext.sh @@ -17,6 +17,8 @@ xgettext --language=JavaScript \ --keyword=_ \ --from-code="$ENCODING" \ --output="$OUT_POT" \ + --width=120 \ + --package-name="PODKOP" \ "${FILES[@]}" echo "POT template generated: $OUT_POT" \ No newline at end of file