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

Translation problems with string constants

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2004-04-25 23:42:53 CEST

There are several cases in which string constants stand in the way of easy
translation. The first being parametrised strings; I'd like to solve those
this way:

               SVN_ERR_CLIENT_CATEGORY_START + 10,
- SVN_PROP_REVISION_AUTHOR " contains a newline")
+ N_("svn:author contains a newline"))

Anybody who deems this unacceptable?

An other being the format strings like SVN_REVNUM_T_FMT; those can be solved
by introducing functions which do the revnum -> string formatting and having
the SVN_REVNUM_T_FMT (and friends) replaced with %s.
There are two possible solutions to stringify the information:
1) Add macros
2) Add (inline) functions

In both cases the question is: where?

My preferance would be (public) macros because they do not require linking
any specific library.



"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 Apr 25 23:43:09 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.