aboutsummaryrefslogtreecommitdiff
path: root/po/updatepo.sh
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-06-22 21:54:26 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-09-08 02:27:23 -0700
commit8c5ac6c21d013220816c9a7285a981a8810f13e1 (patch)
treedde72023a9839469b70b3171fba009cb89e49a3a /po/updatepo.sh
parent8e7eb0d9f5fe321a26f3549425f8686980f60447 (diff)
po: updatepo.sh output shows c-format and fuzzy strings
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'po/updatepo.sh')
-rw-r--r--po/updatepo.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/po/updatepo.sh b/po/updatepo.sh
index d5b0f9d6..e746902f 100644
--- a/po/updatepo.sh
+++ b/po/updatepo.sh
@@ -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
@@ -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