From 6294f2279f3a5d9a2498048fa1a27770587c4cfe Mon Sep 17 00:00:00 2001 From: bruno boutin Date: Mon, 2 Sep 2024 14:14:16 +0200 Subject: [PATCH] Create checkPOFiles.sh --- Tools/checkPOFiles.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Tools/checkPOFiles.sh diff --git a/Tools/checkPOFiles.sh b/Tools/checkPOFiles.sh new file mode 100644 index 0000000000..7f08f5c920 --- /dev/null +++ b/Tools/checkPOFiles.sh @@ -0,0 +1,17 @@ +function checkPO { + for LANGUAGE in cs de eo es eu fr gl id ja nl pl pt_BR pt ru zh_Hans hs_Hant + do + PO_FILE="po/QML-${LANGUAGE}.po" + if [ -e ${PO_FILE} ] + then + if ! grep X-Language ${PO_FILE} >> /dev/null 2>&1 + then + echo "No X-Language for ${LANGUAGE}" + fi + fi + done +} + +export -f checkPO + +git submodule foreach checkPO