Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-doc
Navigation:
Lists: gentoo-doc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-doc@g.o
From: Alin Dobre <alin@g.o>
Subject: statistics
Date: Mon, 19 Sep 2005 21:15:48 +0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey GDPs,

Because yesterday evening I was very very bored to do anything else, I
thought about the idea of having some translations statistics. Well, if
it won't be such a good idea (i.e. useless) at last, at least I've
improved my xml parsing skills via python :)
Here's what the script does:
- - it reads the ${DOCSROOT}/doc/en/metadata.xml and extracts a list of
documents.
- - then, it reads the ${DOCSROOT}/doc/${lang}/metadata.xml file, and, for
each file that points to /{atom}/${lang}/, it considers it translated,
otherwise, not.
- - when the --html file is passed, a html file similar to [1] is
generated, otherwise, something like:
alin@blue1der ~/work/python/trstats $ ./trstats.py ro
[ro]/doc:       Total: 317,     Translated: 170  -> 53%
[ro]/security:  Total: 5,       Translated: 0    -> 0%
[ro]/main:      Total: 4,       Translated: 2    -> 50%
[ro]/proj:      Total: 47,      Translated: 7    -> 14%

The script can be found in my dev web space [2], and the css and gif
images at [3].

Of course, it is not perfect, and I don't intend to make it so, unless
needed.

Have fun.

[1] http://dev.gentoo.org/~alin/scripts/trstats/status.html
[2] http://dev.gentoo.org/~alin/scripts/trstats/trstats.py
[3] http://dev.gentoo.org/~alin/scripts/trstats/
- --
Alin DOBRE
Romanian Lead Translator
Gentoo Documentation Project: http://www.gentoo.org/doc/en/
Gentoo.RO Community:          http://www.gentoo.ro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDLwBTmG51ym6Hu9gRAhOHAKDbuOMtXvHU4CMJcKZv9betD/C0TACgyeVf
T1yFnOgQpE5FOFPnTuYD1jY=
=FG9I
-----END PGP SIGNATURE-----
-- 
gentoo-doc@g.o mailing list


Navigation:
Lists: gentoo-doc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Role change within the German translations team
Next by thread:
Re: Re: cvs commit: quick-samba-howto.xml
Previous by date:
Re: Re: [RFC] Marking unmaintained documents
Next by date:
Mail Delivery (failure gentoo-doc@g.o)


Updated Jun 17, 2009

Summary: Archive of the gentoo-doc mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.