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

Re: String formatting with APR_INT64_T etc. & gettext localization

From: Dongsheng Song <dongsheng.song_at_gmail.com>
Date: Thu, 1 May 2014 14:13:14 +0800

I'm prefer use helper function to translate numbers to strings.
Why ? Because without this approach, the same source will became to
different translate source on different platforms. e.g.

_("The repository trunk version is %"PRId64".")

Will translate to:
_("The repository trunk version is %lld.") // ILP32
_("The repository trunk version is %I64d.") // MSVC
_("The repository trunk version is %ld.") // LP64

Then how the translator do ?
Received on 2014-05-01 08:14:21 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.