subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mattias EngdegÄrd <matti...@bredband.net>
Subject Re: String formatting with APR_INT64_T etc. & gettext localization
Date Thu, 01 May 2014 09:53:09 GMT
1 maj 2014 kl. 08.13 skrev Dongsheng Song:

> _("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

No, gettext recognises standard format macros, such as PRId64, in  
localised strings.
The above string would appear in the message catalogue as

msgid "The repository trunk version is %<PRId64>."

to be translated in the obvious way, keeping the %<PRId64> in the  
string.


Mime
View raw message