Re: [PATCH 3/5] index-pack: correct "len" type in unpack_data()
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 6, 2016, 15:25 UTC
- Message-ID
- <CACsJy8ASYszXU-ErPas99EpW_J_E-FQVk197W7KqURJge_RBRQ@mail.gmail.com>
- In-Reply-To
- <577C17D4.6080708@kdbg.org>
On Tue, Jul 5, 2016 at 10:25 PM, Johannes Sixt <j6t@kdbg.org> wrote:
Show 9 quoted lines
> Am 05.07.2016 um 19:05 schrieb Nguyễn Thái Ngọc Duy:
>>
>> + die(Q_("premature end of pack file, %"PRIuMAX"
>> byte missing",
>> + "premature end of pack file, %"PRIuMAX"
>> bytes missing",
>
>
> I would be surprised if this form of translation worked...What can I say, gettext is smart. In gc.c we already have this
die(_("gc is already running on machine '%s' pid %"PRIuMAX" (use --force if not)"), name, (uintmax_t)pid);
and vi.po shows
#: builtin/gc.c:397 #, c-format msgid "" "gc is already running on machine '%s' pid %<PRIuMAX> (use --force if not)"
-- Duy