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

APR_UINT64_FMT_T in localised format strings

From: Mattias Engdegňrd <mattiase_at_bredband.net>
Date: Sun, 20 Oct 2013 12:23:17 +0200

Localised strings must consist entirely of literals; they cannot
contain preprocessor macros. For example, svnserve/serve.c:2234 has

     return svn_error_createf(SVN_ERR_RA_SVN_MALFORMED_DATA, NULL,
                              _("Invalid move_behavior value %"
                                APR_UINT64_T_FMT " in log command"),

I suppose the current practice is to format the numbers to separate
strings and include them using %s in the localised string. (If it were
up to me, I'd just make %lld (etc) work in all format strings and be
done with it.)

xgettext complains about (in trunk):

Received on 2013-10-20 12:24:07 CEST

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.