Hook script checking for po files validity at commit time

Jean-François Wauthy pollux at xfce.org
Sun Nov 4 17:46:49 CET 2007


Hi all,

I've used of my admin rights on Mocha and I've added a hook script that
checks the validity of po files when they are committed (the check is
simply: msgfmt -c --check-accelerators=_ file.po). This hook script has
been added to the xfce and goodies repository.

It should not raise any problem with normal code commits. If it is,
unfortunately, the case tell me and I'll deactivate it at once (or if
you have the rights to do it, feel free to do it yourself). I don't want
to prevent the repository from working as before for commits not related
to translations.

In attachement you'll find the current version of the script, comments
are welcome.

Cheers
-- 
Jean-François Wauthy <pollux at xfce.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-po.php
Type: application/x-php
Size: 778 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20071104/07f0c3c9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20071104/07f0c3c9/attachment.pgp>


More information about the Xfce4-dev mailing list