[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: Mattias Engdegård <mattiase_at_bredband.net>
Date: Thu, 1 May 2014 11:53:09 +0200

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.
Received on 2014-05-01 11:54:06 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.