Revision: 1638
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1638&view=rev
Author:   mow
Date:     2009-04-11 20:46:37 +0000 (Sat, 11 Apr 2009)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/po/gen_translations_stats.sh

Modified: trunk/po/gen_translations_stats.sh
===================================================================
--- trunk/po/gen_translations_stats.sh  2009-04-11 20:00:07 UTC (rev 1637)
+++ trunk/po/gen_translations_stats.sh  2009-04-11 20:46:37 UTC (rev 1638)
@@ -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}"'",


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to