You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Erik Huelsmann <e....@gmx.net> on 2004/06/23 21:24:47 UTC

Re: Checking format strings in .po files

> [Moving this discussion to the dev list]

Which probably did not show up yet; the list address is dev@ (not devel@)
:-)
 
> On Wed, 23 Jun 2004, Erik Huelsmann wrote:
> 
> > > On Wed, 23 Jun 2004, Greg Stein wrote:
> > >
> > > > For translations... heck yah. That's an even lower part than partial
> > > > commit access to the raw code.
> > > >
> > > Hmmm... Remember that a translation is part of the code. A bad
> translation
> > > can introduce crashes due to formatting strings. But only for that
> > > language. That was why I wanted to add --check-format to the msgfmt
> > > command line some week ago.
> >
> > I think we can't do that in the Makefile, but I could include this check
> in
> > my cronjob (which I will commit when it proves alright).
> >
> But we could add the -c option in the Makefile if we add
> Last-Translator: Subversion Developers <de...@subversion.tigris.org>
> to every .po file. (In fact my msgfmt only checks that the header is
> there, so we could possibly leave it empty, but that's ugly.)
 
I think this is a good convention. If you do that to all po files, would you
also document it in TRANSLATING please?

> I'd like to have the check in the regular build so we make sure we don't
> release with a translation which crashes svn.

Well, if I add the check to the cronjob, that would have almost the same
effect; I don't expect a commit rate to the translations as high as that on
the rest of our code. (Is that incorrect?)

> If no one objects, I can do this in all .po files and change the
> Makefile.in. Anyone knows if -c is available in other msgfmt programs that
> we support?

That's why I thought we can't do it to the main build: 
http://www.netsys.com/cgi-bin/solaris9?msgfmt(1) seems to indicate Solaris 9
does not support -c.

bye,


Erik.


-- 
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Checking format strings in .po files

Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Wed, 23 Jun 2004, Erik Huelsmann wrote:

> > I'd like to have the check in the regular build so we make sure we don't
> > release with a translation which crashes svn.
>
> Well, if I add the check to the cronjob, that would have almost the same
> effect; I don't expect a commit rate to the translations as high as that on
> the rest of our code. (Is that incorrect?)
>
That might be good enough. It would be better if it broke the build,
thgough. Then it can't go unnoticed. But...
> > If no one objects, I can do this in all .po files and change the
> > Makefile.in. Anyone knows if -c is available in other msgfmt programs that
> > we support?
>
> That's why I thought we can't do it to the main build:
> http://www.netsys.com/cgi-bin/solaris9?msgfmt(1) seems to indicate Solaris 9
> does not support -c.
>
Thanks fot the link. OK, we go with the cron job for now IMO.
One could do something in configure to add arguments if msgfmt suports
them.

I'll fix the .po files and TRANSLATING anyway.

//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org