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

Re: [PATCH] Re: svn commit: r35033 - in trunk/subversion: include libsvn_fs libsvn_fs_base libsvn_fs_fs libsvn_repos svnadmin tests/libsvn_fs_fs

From: Fabien Coelho <fabien_at_coelho.net>
Date: Tue, 6 Jan 2009 17:10:10 +0100 (CET)

>> Gettext is broken on line 1135 :
>>> + _("Packing shard %" APR_INT64_T_FMT "..."),
>>
>> You cannot use the *_FMT macros directly in a format, as it is missed by
>> the gettext string extractor.
>
> Is this the right way to fix this kind of problem?

I would say yes.

> - SVN_ERR(svn_cmdline_printf(pool,
> - _("Packing shard %" APR_INT64_T_FMT "..."),
> - shard));
> + {
> + const char *shardstr = apr_psprintf(pool, "%" APR_INT64_T_FMT,
> shard);
> + SVN_ERR(svn_cmdline_printf(pool, _("Packing shard %s..."),
> shardstr));
> + }
> break;
>
> case svn_fs_pack_notify_end:

-- 
Fabien.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1007786
Received on 2009-01-06 17:10:59 CET

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.