From ffb044b0bf2a52df2d358fe2057d2194a9e42a9c Mon Sep 17 00:00:00 2001 From: Ing Date: Wed, 6 Mar 2024 22:17:02 +0800 Subject: [PATCH] fix convertpo2mo --- scripts/func.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/func.sh b/scripts/func.sh index ca6f3a88..1456d93c 100755 --- a/scripts/func.sh +++ b/scripts/func.sh @@ -13,7 +13,7 @@ export TOKEN="${1}" function convertpo2mo() { echo "Convert po2mo begin" local DEST_PATH="${1:-lang}" - for P in $(ls ${DEST_PATH}/*.po 2>/dev/null); do + for P in $(ls ${DEST_PATH}/*/LC_MESSAGES/rr.po 2>/dev/null); do # Use msgfmt command to compile the .po file into a binary .mo file echo "msgfmt ${P} to ${P/.po/.mo}" msgfmt ${P} -o ${P/.po/.mo}