[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is it woth to have SVN_REVNUM_T_FMT?

From: Marc Haisenko <haisenko_at_webport.de>
Date: 2004-04-05 15:45:02 CEST

On Monday 05 April 2004 15:30, Nicolás Lichtmaier wrote:
> >As SVN_REVNUM_T_FMT is a #define the C preprocessor converts this into
> > just one string: "Revision: ld%" (I'm sure you've misquoted the example
> > ;-) So this should be fine for xgettext, or is xgettext a macro ?
> xgettext scans the source files wihout preprocessing them. And it makes
> sense because any change in the text would render the translations
> obsolete.

Oh, I see...

How about writing a small wrapper script that does this special preprocessing
and passing that output to xgettext ? This would of course be a bad hack,
especially since it wouldn't catch other #defines.

Or even write a wrapper script that calls the cpp preprocessor on a source
file and feed the preprocessed source to xgettext ? I'm not sure whether this
could result in unwanted extra strings or something like that...

Marc Haisenko
Webport IT-Services GmbH
mailto: haisenko@webport.de
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 5 15:40:51 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.