Re: UTF8 encoding for all .po files



On 30 Apr 2002, Gregory Leblanc wrote:

> > > We can add a script at cvs.gnome.org to check for a valid .po file, if
> > > the file is not well enconded the commit can fail.
> > 
> > Shouldn't that be done anyway? Invalid po files are a big pain....
> 
> Yep, it should.  There was some attempt at doing this in CVS, but the
> regexp was broken and never matched any files.  I think it's gone now,
> but I'm not sure.  Sopwith was the last one looking at this, IIRC.

What I do, is add a check in commitinfo which check if it's a .po file. If 
it is, and it exists (so removals don't fail), it runs msgfmt -c on it. If 
msgfmt likes the file, the commit is accepted, if not, it fails.

-- 
Trond Eivind Glomsrød
Red Hat, Inc.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]