diff options
author | Bagas Sanjaya <bagasdotme@gmail.com> | 2021-12-22 08:58:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-11 23:37:09 +0100 |
commit | 3d3c23b3a754cf5060a93d9f777e58662cdd5ffe (patch) | |
tree | 8a7dee9341a31cfa83bd26755c983e06eaa46730 /fetch-pack.c | |
parent | The fourth batch (diff) | |
download | git-3d3c23b3a754cf5060a93d9f777e58662cdd5ffe.tar.xz git-3d3c23b3a754cf5060a93d9f777e58662cdd5ffe.zip |
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 <bagasdotme@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.c')
-rw-r--r-- | fetch-pack.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fetch-pack.c b/fetch-pack.c index 34987a2c30..3a98d66e81 100644 --- a/fetch-pack.c +++ b/fetch-pack.c @@ -1415,9 +1415,17 @@ static int process_ack(struct fetch_negotiator *negotiator, * otherwise. */ if (*received_ready && reader->status != PACKET_READ_DELIM) - die(_("expected packfile to be sent after 'ready'")); + /* + * TRANSLATORS: The parameter will be 'ready', a protocol + * keyword. + */ + die(_("expected packfile to be sent after '%s'"), "ready"); if (!*received_ready && reader->status != PACKET_READ_FLUSH) - die(_("expected no other sections to be sent after no 'ready'")); + /* + * TRANSLATORS: The parameter will be 'ready', a protocol + * keyword. + */ + die(_("expected no other sections to be sent after no '%s'"), "ready"); return 0; } |