subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dongsheng Song <dongsheng.s...@gmail.com>
Subject Re: String formatting with APR_INT64_T etc. & gettext localization
Date Thu, 01 May 2014 06:13:14 GMT
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 ?

Mime
View raw message