On Tue, May 29, 2007 at 03:55:09PM +0300, Eddy Petri??or wrote: > > I see you have enabled 'es' too. But the script fails there too. Without > > looking at the script (which I guess is run with -x) it is quite difficult > > to > > correlate log errors with a specific problem (in the script or in the PO > > files). > > The last lines of the log show what is the issue. Some pos (apparently) are > broken.
The scripts should not abort if there is a corrupt PO file. They should just
disregard it and continue. In any case, I've checked that PO file and yes,
it's corrupt (and submitted a bug report with a patch)
In any case, I suggest you run 'msgfmt --stat -c -o /dev/null' over any file
before msgcatting and only proceed if the po file validates. Something like
this:
if msgfmt --stat -c -o /dev/null $POFILE >/dev/null 2>&1 ; then
echo "INFO: Adding PO file to the Compendium"
# Add to the compendium
msgcat $POFILE XXXXX
else
# Leave a log and continue
echo "ERROR: PO file $POFILE is corrupt and cannot be added to the
Compendium" >&2
fi
Regards
Javier
signature.asc
Description: Digital signature

