Skip to content

Commit

Permalink
fix: also check .pot GetText files in addition to .po files (#10827)
Browse files Browse the repository at this point in the history
  • Loading branch information
teolemon authored Sep 26, 2024
1 parent f1cd9bd commit bb87197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-translations.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# adaptated from Tar-Minyatur/gettext-validation, (MIT License)

echo "Checking .po files in po/..."
echo "Checking .po and .pot files in po/..."
if ! (which gettext)
then
>2 echo "you must install gettext to run this script"
exit 2
fi
ERRORS=0
tmplog=$(mktemp --suffix "-check-translations.log")
for filename in $(find po/ -type f -name \*.po)
for filename in $(find po/ -type f \( -name \*.po -o -name \*.pot \))
do
file_basename=$(basename "$filename")
# exception for lol.po (crowdin ids tracking)
Expand Down

0 comments on commit bb87197

Please sign in to comment.