From f5cafd55739a34a0ee26ffd0fc080a5734fd2f76 Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Thu, 2 Oct 2025 19:44:39 +0500 Subject: [PATCH] chore: add --no-location option to msgmerge and msginit to omit source code references in PO files --- luci-app-podkop/msgmerge.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-podkop/msgmerge.sh b/luci-app-podkop/msgmerge.sh index 76bc3d6..fd1e7e6 100644 --- a/luci-app-podkop/msgmerge.sh +++ b/luci-app-podkop/msgmerge.sh @@ -20,11 +20,11 @@ fi if [ -f "$POFILE" ]; then echo "Updating $POFILE" - msgmerge --update --width="$WIDTH" "$POFILE" "$POTFILE" + msgmerge --update --width="$WIDTH" --no-location "$POFILE" "$POTFILE" else echo "Creating new $POFILE using msginit" mkdir -p "$PODIR/$LANG" - msginit --no-translator --locale="$LANG" --width="$WIDTH" --input="$POTFILE" --output-file="$POFILE" + msginit --no-translator --no-location --locale="$LANG" --width="$WIDTH" --input="$POTFILE" --output-file="$POFILE" fi echo "Translation file for $LANG updated." \ No newline at end of file