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

Re: replacing SVN_REVNUM_T_FMT for translation

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-05-09 23:42:14 CEST

On Sun, 2004-05-09 at 16:05, Erik Huelsmann wrote:
> 2) Replace the SVN_REVNUM_T_FMT'- with their real value; thus hardcoding the
> format into about 200 strings.

I'm not terribly opposed to this, since we control the definition of
svn_revnum_t. But if we go this route, have we determined what we will
do about APR_SIZE_T_FMT and APR_OFF_T_FMT, where we don't know or
control the value? I suppose it's possible that we never use them in
localizable strings, or that we do so rarely enough that we could just
use "%s" with an argument of apr_psprintf(pool, "%" APR_OFF_T_FMT, blah)
with no wrapper.

Attractive as some variant of (3) sounds as a solution to all of life's
problems, I think it will get us into trouble because no one else does
it that way. (I like the idea of being able to register type names in a
hash and use format specifiers like %{svn_revnum_t}, and we could do
that as a format-string-translating wrapper around apr_psprintf, but it
doesn't seem terribly likely to be compatible with gettext--if it's not
a problem now, then it could be in the future.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 9 23:42:36 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.