1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hey GDPs, |
5 |
|
6 |
Because yesterday evening I was very very bored to do anything else, I |
7 |
thought about the idea of having some translations statistics. Well, if |
8 |
it won't be such a good idea (i.e. useless) at last, at least I've |
9 |
improved my xml parsing skills via python :) |
10 |
Here's what the script does: |
11 |
- - it reads the ${DOCSROOT}/doc/en/metadata.xml and extracts a list of |
12 |
documents. |
13 |
- - then, it reads the ${DOCSROOT}/doc/${lang}/metadata.xml file, and, for |
14 |
each file that points to /{atom}/${lang}/, it considers it translated, |
15 |
otherwise, not. |
16 |
- - when the --html file is passed, a html file similar to [1] is |
17 |
generated, otherwise, something like: |
18 |
alin@blue1der ~/work/python/trstats $ ./trstats.py ro |
19 |
[ro]/doc: Total: 317, Translated: 170 -> 53% |
20 |
[ro]/security: Total: 5, Translated: 0 -> 0% |
21 |
[ro]/main: Total: 4, Translated: 2 -> 50% |
22 |
[ro]/proj: Total: 47, Translated: 7 -> 14% |
23 |
|
24 |
The script can be found in my dev web space [2], and the css and gif |
25 |
images at [3]. |
26 |
|
27 |
Of course, it is not perfect, and I don't intend to make it so, unless |
28 |
needed. |
29 |
|
30 |
Have fun. |
31 |
|
32 |
[1] http://dev.gentoo.org/~alin/scripts/trstats/status.html |
33 |
[2] http://dev.gentoo.org/~alin/scripts/trstats/trstats.py |
34 |
[3] http://dev.gentoo.org/~alin/scripts/trstats/ |
35 |
- -- |
36 |
Alin DOBRE |
37 |
Romanian Lead Translator |
38 |
Gentoo Documentation Project: http://www.gentoo.org/doc/en/ |
39 |
Gentoo.RO Community: http://www.gentoo.ro/ |
40 |
-----BEGIN PGP SIGNATURE----- |
41 |
Version: GnuPG v1.4.1 (GNU/Linux) |
42 |
|
43 |
iD8DBQFDLwBTmG51ym6Hu9gRAhOHAKDbuOMtXvHU4CMJcKZv9betD/C0TACgyeVf |
44 |
T1yFnOgQpE5FOFPnTuYD1jY= |
45 |
=FG9I |
46 |
-----END PGP SIGNATURE----- |
47 |
-- |
48 |
gentoo-doc@g.o mailing list |