Skip to content

Commit

Permalink
po: updatepo.sh output shows c-format and fuzzy strings
Browse files Browse the repository at this point in the history
Signed-off-by: Burt P <[email protected]>
  • Loading branch information
bp0 authored and lpereira committed Sep 8, 2018
1 parent 8e7eb0d commit 8c5ac6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions po/updatepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ do
done;

MSGTOTAL=`msgattrib --untranslated hardinfo.pot | grep -E "^msgstr \"\"" | wc -l`
CMSG=`msgattrib --untranslated hardinfo.pot | grep -E "^#,.*c-format" | wc -l`

TDIFF=$(($MSGTOTAL - $MSGTOTALOLD))
CHANGE="$TDIFF"
if [ $TDIFF -gt 0 ]; then CHANGE="+$TDIFF"; fi
if [ $TDIFF -eq 0 ]; then CHANGE="no change"; fi
echo "hardinfo.pot now has $MSGTOTAL strings ($CHANGE)"
echo "hardinfo.pot now has $MSGTOTAL strings ($CHANGE), with $CMSG c-format strings"
echo "(as of $GITVER $GITHASH)"

for f in *.po
Expand All @@ -47,6 +49,7 @@ do

# stats
UNMSG=`msgattrib --untranslated "$f" | grep -E "^msgstr \"\"" | wc -l`
FUZMSG=`msgattrib --translated "$f" | grep -E "^#,.*fuzzy" | wc -l`
DONE=" "; if [ $UNMSG -eq 0 ]; then DONE="x"; fi
echo "- [$DONE] $f : ($UNMSG / $MSGTOTAL remain untranslated)"
echo "- [$DONE] $f : ($UNMSG / $MSGTOTAL remain untranslated, needs work/fuzzy: $FUZMSG)"
done

0 comments on commit 8c5ac6c

Please sign in to comment.