source: scripts/po_stats.sh

Last change on this file was 3656, checked in by Александър Шопов, 3 years ago

Script to generate statistics on needed work in po-file

  • Property svn:executable set to *
File size: 422 bytes
Line 
1FILE="${1}"
2msgattrib --untranslated ${FILE} > ${FILE}-untranslated
3msgattrib --translated --only-fuzzy ${FILE} > ${FILE}-fuzzy
4msgcat ${FILE}-untranslated ${FILE}-fuzzy > ${FILE}-todo
5grep '^#:' ${FILE}-todo | cut -c4- | tr ' ' '\n' | cut -d: -f1 | sort > ${FILE}-files
6sort -u ${FILE}-files > ${FILE}-uniq
7for f in `cat ${FILE}-uniq`; do n=`grep "^$f$" ${FILE}-files |wc -l`; echo $n $f ; done | sort -n > ${FILE}-stats
Note: See TracBrowser for help on using the repository browser.