|
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 | |
|---|
| 1 | FILE="${1}"
|
|---|
| 2 | msgattrib --untranslated ${FILE} > ${FILE}-untranslated
|
|---|
| 3 | msgattrib --translated --only-fuzzy ${FILE} > ${FILE}-fuzzy
|
|---|
| 4 | msgcat ${FILE}-untranslated ${FILE}-fuzzy > ${FILE}-todo
|
|---|
| 5 | grep '^#:' ${FILE}-todo | cut -c4- | tr ' ' '\n' | cut -d: -f1 | sort > ${FILE}-files
|
|---|
| 6 | sort -u ${FILE}-files > ${FILE}-uniq
|
|---|
| 7 | for 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.