Skip to content

Commit 0778b29

Browse files
pcloudsgitster
authored andcommitted
fetch-pack: move capability names out of i18n strings
This reduces the work on translators since they only have one string to translate (and I think it's still enough context to translate). It also makes sure no capability name is translated by accident. Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a6a95cd commit 0778b29

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

fetch-pack.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -907,32 +907,32 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args,
907907
if (args->depth > 0 || args->deepen_since || args->deepen_not)
908908
args->deepen = 1;
909909
if (server_supports("multi_ack_detailed")) {
910-
print_verbose(args, _("Server supports multi_ack_detailed"));
910+
print_verbose(args, _("Server supports %s"), "multi_ack_detailed");
911911
multi_ack = 2;
912912
if (server_supports("no-done")) {
913-
print_verbose(args, _("Server supports no-done"));
913+
print_verbose(args, _("Server supports %s"), "no-done");
914914
if (args->stateless_rpc)
915915
no_done = 1;
916916
}
917917
}
918918
else if (server_supports("multi_ack")) {
919-
print_verbose(args, _("Server supports multi_ack"));
919+
print_verbose(args, _("Server supports %s"), "multi_ack");
920920
multi_ack = 1;
921921
}
922922
if (server_supports("side-band-64k")) {
923-
print_verbose(args, _("Server supports side-band-64k"));
923+
print_verbose(args, _("Server supports %s"), "side-band-64k");
924924
use_sideband = 2;
925925
}
926926
else if (server_supports("side-band")) {
927-
print_verbose(args, _("Server supports side-band"));
927+
print_verbose(args, _("Server supports %s"), "side-band");
928928
use_sideband = 1;
929929
}
930930
if (server_supports("allow-tip-sha1-in-want")) {
931-
print_verbose(args, _("Server supports allow-tip-sha1-in-want"));
931+
print_verbose(args, _("Server supports %s"), "allow-tip-sha1-in-want");
932932
allow_unadvertised_object_request |= ALLOW_TIP_SHA1;
933933
}
934934
if (server_supports("allow-reachable-sha1-in-want")) {
935-
print_verbose(args, _("Server supports allow-reachable-sha1-in-want"));
935+
print_verbose(args, _("Server supports %s"), "allow-reachable-sha1-in-want");
936936
allow_unadvertised_object_request |= ALLOW_REACHABLE_SHA1;
937937
}
938938
if (!server_supports("thin-pack"))
@@ -942,13 +942,13 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args,
942942
if (!server_supports("include-tag"))
943943
args->include_tag = 0;
944944
if (server_supports("ofs-delta"))
945-
print_verbose(args, _("Server supports ofs-delta"));
945+
print_verbose(args, _("Server supports %s"), "ofs-delta");
946946
else
947947
prefer_ofs_delta = 0;
948948

949949
if (server_supports("filter")) {
950950
server_supports_filtering = 1;
951-
print_verbose(args, _("Server supports filter"));
951+
print_verbose(args, _("Server supports %s"), "filter");
952952
} else if (args->filter_options.choice) {
953953
warning("filtering not recognized by server, ignoring");
954954
}

0 commit comments

Comments
 (0)