On 25/08/12 14:13, intrigeri wrote:
> hi,
>
> sajolida@??? wrote (19 Aug 2012 15:22:35 GMT) :
>> I wrote a little script that calculates the total percentage of
>> messages on the website that have been translated in each language.
>
> Nice :)
>
>> I'm also sending you the script in attachment for review.
>
> Here's an improved version:
>
> * move to POSIX /bin/sh
> * add vim/Emacs modelines
> * separatedly account for fuzzy translations
> * ignore obsolete strings
> * allow specifying a list of languages as command line arguments
> * minor factorization
> * stricter msgid matching regexp
Great.
> How about:
>
> * adding this script somewhere in our Git repository?
I pushed it in the root of the repository.
> * adding support for non-ikiwiki .po files, so that we can run this
> script from the root of our Git repository? ... and then it would
> take into account config/chroot_local-includes/usr/share/locale/
Done.
> * having cron email this script's output to tails-l10n once every
> 6 weeks (e.g. at the beginning of release cycle, or at freeze
> time)?
I don't feel like programming cron jobs again at the moment.