# HG changeset patch # User mow # Date 1239482797 0 # Node ID 1310d504b548006374b1ef0ae81c12f211377847 # Parent 286ed7c6cae6aab2f41052a92411e441ba2a44b4 Fix that the output of msgfmt could be singular The output of msgfmt could be singular if there is only one translation of the given type. diff -r 286ed7c6cae6 -r 1310d504b548 po/gen_translations_stats.sh --- a/po/gen_translations_stats.sh Sat Apr 11 19:51:03 2009 +0000 +++ b/po/gen_translations_stats.sh Sat Apr 11 20:46:37 2009 +0000 @@ -19,9 +19,9 @@ msgfmt --statistics -o /dev/null $i 2>&1 \ | perl -ne ' my ($tr_done, $tr_fuzz, $tr_un) = (0, 0, 0); - $tr_done = $1 if /(\d+) translated messages/; - $tr_fuzz = $1 if /(\d+) fuzzy translations/; - $tr_un = $1 if /(\d+) untranslated messages/; + $tr_done = $1 if /(\d+) translated messages?/; + $tr_fuzz = $1 if /(\d+) fuzzy translations?/; + $tr_un = $1 if /(\d+) untranslated messages?/; my $tr_tot = $tr_done + $tr_fuzz + $tr_un; printf "%8.0f|%s|%7.2f|%5d|%5d|%7d|%5d\n", 10000*$tr_done/$tr_tot, "'"${i%%.po}"'",