[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: John Peacock <jpeacock_at_rowman.com>
Date: 2004-04-05 15:55:33 CEST

Nicolás Lichtmaier wrote:

>>> xgettext scans the source files wihout preprocessing them. And it makes
>>> sense because any change in the text would render the translations
>>> obsolete.

Except that doesn't make sense! The whole point of preprocessing macros is to
change elements of the source code based on compile-time choices. And that
includes string literals. If xgettext cannot handle that, it is a serious

> It could be done, but IMO format strings should be *constant* when using
> gettext. So I see just two solutions, to use a function format_revision()
> or just to replace this macro with the proper "%ld" and move over =).

In this case, yes we should probably just hardcode %ld, but the use of macros to
provide crossplatform format strings is widespread (some might consider it
pervasive). A better way of scanning the source files (preferrably after
preprocessing) would be the preferred way to deal with this, rather than cripple
the code to fit xgettext's limitations.


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
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:55:42 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.