Le mardi 03 mars 2009 à 13:42 -0500, Owen Taylor a écrit : > On Tue, 2009-03-03 at 13:08 -0500, Owen Taylor wrote: > > > > I just wonder about a pre-commit hook which I think checks the po files > > > validity (msgfmt check). IMHO It should also be rather easy to rewrite > > > for git. > > > > Looks easy to rewrite, yes. > > Any advise and insight into the code in that hook. > > # The Persian (fa) team is using localized numeric formats > # in their .po files, but gettext on cvs.gnome.org isn't > # new enough to handle them. > # DASH_C="" > # BASENAME=`basename > # if [ "$BASENAME" != "fa.po" ]; then > # DASH_C="-c" > # fi > > (we used to pass in -c for everything but fa.po, and now we pass it > in for nothing)
Are they other check options passed (--check-format, --check-header, --check-domain)? > Would be appreciated. > > mgfmt on git.gnome.org (RHEL 5) is version 0.14.6 Well, this is indeed an outdated version. e.g. msgctxt support has been introduced in 0.15. Would it be possible to build a more recent version? With a more recent version, the -c check could be reintroduced and general po quality improved. Claude _______________________________________________ gnome-infrastructure mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-infrastructure
