diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 00:35:53 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 00:35:53 -0300 |
commit | 5f01c706267c595de92406a32e7f31ef5056c2d0 (patch) | |
tree | d1e74ef54efc41ada622900fe3e2a50dee44a237 /po/updatepo.sh | |
parent | 09fcc751ef158898c315ebc9299a0fa3a722d914 (diff) |
New upstream version 2.0.3preupstream/2.0.3pre
Diffstat (limited to 'po/updatepo.sh')
-rwxr-xr-x[-rw-r--r--] | po/updatepo.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/po/updatepo.sh b/po/updatepo.sh index d5b0f9d6..84e6ef7c 100644..100755 --- a/po/updatepo.sh +++ b/po/updatepo.sh @@ -1,4 +1,4 @@ -#!bash +#!/bin/bash GITVER=`git describe --always --dirty` GITHASH=`git rev-parse HEAD` @@ -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 |