Re: GNOME statistics word count



Op Donderdag 2008-03-06 skryf Arangel Angov:
> I tried searching through the archives for this, i found the same
> question but no answer. 
> 
> Is there a way to somehow extract the word count for all the po files at
> http://l10n.gnome.org/languages/mk/gnome-2-22 for example.
> 
> Anyone did this before and maybe has a script that can do it?
> 
> Any suggestions are welcomed.
> 
> Thanks,

In the Translate Toolkit there is a program, pocount, that provides
several counts of pofiles (and other types of files). You can install
the Translate Toolkit for this purpose. In Pootle, the same information
is also available (the default statistical view in Pootle is to show
word counts, not string counts).

More information on pocount is here:
http://translate.sourceforge.net/wiki/toolkit/pocount

It can also output to a CSV file.

Here is some example output from the program when counting two files:

gnome-control-center.HEAD.af.po
type              strings      words (source)    words (translation)
translated:     438 ( 54%)       2083 ( 58%)            2019
fuzzy:          229 ( 28%)        805 ( 22%)             n/a
untranslated:   143 ( 17%)        652 ( 18%)             n/a
Total:          810              3540                   2019

gnome-desktop.af.po
type              strings      words (source)    words (translation)
translated:      76 (100%)        330 (100%)             345
fuzzy:            0 (  0%)          0 (  0%)             n/a
untranslated:     0 (  0%)          0 (  0%)             n/a
Total:           76               330                    345

TOTAL:
type              strings      words (source)    words (translation)
translated:     514 ( 58%)       2413 ( 62%)            2364
fuzzy:          229 ( 25%)        805 ( 20%)             n/a
untranslated:   143 ( 16%)        652 ( 16%)             n/a
Total:          886              3870                   2364

File count:       2


Keep well
Friedel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]