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

replacing SVN_REVNUM_T_FMT for translation

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2004-05-09 22:05:47 CEST

In order to be able to mark all strings for translation the SVN_REVNUM_T_FMT
format string has to be removed from strings-to-be-translated.

Until now three methods have been identified to achieve this goal:

1) Use (a) a macro or (b) a function to convert the svn_revnum_t to a
string, replacing the format within the string with the "%s" string format.

2) Replace the SVN_REVNUM_T_FMT'- with their real value; thus hardcoding the
format into about 200 strings.

3) Code SVN_REVNUM_T_FMT with a special identifier ("%R"?) and use a
translator function which understands this (these?) identifiers and
translates them into their printf; this can be done by (a) overriding
apr_psprintf or by (b) pre-translating the string and passing that string to

Understandibly Branko objects due to the large scale on which the somewhat
hacky solution of 1a and 1b has to be applied. Presumably he'd also object
to solution 3b.

I'd prefer 3a because of its elegance, but can see how its complexity isn't
desirable. I'd rather not resort to 2 even though I understand the
unlikeliness of changing the data type for svn_revnum_t.



"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
Received on Sun May 9 22:06:03 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.