Mercurial > geeqie.yaz
view po/gen_translations_stats.sh @ 468:2df505c60459
Replace fullscreen.info and fullscreen.show_info options by:
image_overlay.common.enabled => to save last state to rc file
image_overlay.common.show_at_startup => overrides .common.enabled at startup
image_overlay.common.template_string => replace fullscreen.info
common is used since for now there is only one image overlay setup,
later specific setups may be added.
author | zas_ |
---|---|
date | Mon, 21 Apr 2008 20:01:22 +0000 |
parents | 9131ca4ad70b |
children | 48bfa03502d3 |
line wrap: on
line source
#!/bin/bash # This script prints translations statistics for .po files # existing in the current directory echo "Translations statistics" echo "Date: `date`" echo for i in *.po; do msgfmt --statistics -o /dev/null $i 2>&1 \ | sed 's/^\([0-9]\+ \)[^0-9]*\([0-9]\+ \)\?[^0-9]*\([0-9]\+ \)\?[^0-9]*$/\1\2\3/g' \ | awk '{ \ tot = $1 + $2 + $3; \ if (tot != 0) \ printf "%8.0f %8s %6.02f%% (%3d/%3d untranslated)\n",\ ($1*100/tot)*100, "'"$i"'", $1*100/tot, $2+$3, tot}' ; done | sort -b -k1,1nr -k2,2 | sed 's/^ *[0-9]*//' echo