Skip to content

Commit 3d3c23b

Browse files
bagasmegitster
authored andcommitted
fetch-pack: parameterize message containing 'ready' keyword
The protocol keyword 'ready' isn't meant for translation. Pass it as parameter instead of spell it in die() message (and potentially confuse translators). Signed-off-by: Bagas Sanjaya <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 597af31 commit 3d3c23b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

fetch-pack.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,9 +1415,17 @@ static int process_ack(struct fetch_negotiator *negotiator,
14151415
* otherwise.
14161416
*/
14171417
if (*received_ready && reader->status != PACKET_READ_DELIM)
1418-
die(_("expected packfile to be sent after 'ready'"));
1418+
/*
1419+
* TRANSLATORS: The parameter will be 'ready', a protocol
1420+
* keyword.
1421+
*/
1422+
die(_("expected packfile to be sent after '%s'"), "ready");
14191423
if (!*received_ready && reader->status != PACKET_READ_FLUSH)
1420-
die(_("expected no other sections to be sent after no 'ready'"));
1424+
/*
1425+
* TRANSLATORS: The parameter will be 'ready', a protocol
1426+
* keyword.
1427+
*/
1428+
die(_("expected no other sections to be sent after no '%s'"), "ready");
14211429

14221430
return 0;
14231431
}

0 commit comments

Comments
 (0)