Skip to content

Commit

Permalink
Create checkPOFiles.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
boutinb authored Sep 2, 2024
1 parent 6bc2d54 commit 6294f22
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Tools/checkPOFiles.sh
Original file line number Diff line number Diff line change
@@ -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

This comment has been minimized.

Copy link
@shun2wang

shun2wang Sep 2, 2024

Contributor

hs_Hant should be zh_Hant? why we needs this and form submodules using github action(i18n test) should be better(otherwise we must always update this list)? @boutinb

This comment has been minimized.

Copy link
@boutinb

boutinb Sep 3, 2024

Author Contributor

hs_Hant should be zh_Hant?
Oh my bad, I'll change this.

why we needs this and form submodules using github action(i18n test) should be better(otherwise we must always update this list)? @boutinb

Yes this should be added in a GitHub action, I just added this script in GitHub at the end of the day to be sure that I would not lose it.

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

0 comments on commit 6294f22

Please sign in to comment.