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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jun 20, 2019 at 18:59 UTC 0778b2931c8d561b02046a80870af7c9f4d14d52
1 file changed +9 -9
fetch-pack.c
+9 -9
@@ -907,32 +907,32 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args,
907 if (args->depth > 0 || args->deepen_since || args->deepen_not)
908 args->deepen = 1;
909 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");
911 multi_ack = 2;
912 if (server_supports("no-done")) {
913 - print_verbose(args, _("Server supports no-done"));
913 + print_verbose(args, _("Server supports %s"), "no-done");
914 if (args->stateless_rpc)
915 no_done = 1;
916 }
917 }
918 else if (server_supports("multi_ack")) {
919 - print_verbose(args, _("Server supports multi_ack"));
919 + print_verbose(args, _("Server supports %s"), "multi_ack");
920 multi_ack = 1;
921 }
922 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");
924 use_sideband = 2;
925 }
926 else if (server_supports("side-band")) {
927 - print_verbose(args, _("Server supports side-band"));
927 + print_verbose(args, _("Server supports %s"), "side-band");
928 use_sideband = 1;
929 }
930 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");
932 allow_unadvertised_object_request |= ALLOW_TIP_SHA1;
933 }
934 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");
936 allow_unadvertised_object_request |= ALLOW_REACHABLE_SHA1;
937 }
938 if (!server_supports("thin-pack"))
@@ -942,13 +942,13 @@ static struct ref *do_fetch_pack(struct fetch_pack_args *args,
942 if (!server_supports("include-tag"))
943 args->include_tag = 0;
944 if (server_supports("ofs-delta"))
945 - print_verbose(args, _("Server supports ofs-delta"));
945 + print_verbose(args, _("Server supports %s"), "ofs-delta");
946 else
947 prefer_ofs_delta = 0;
948
949 if (server_supports("filter")) {
950 server_supports_filtering = 1;
951 - print_verbose(args, _("Server supports filter"));
951 + print_verbose(args, _("Server supports %s"), "filter");
952 } else if (args->filter_options.choice) {
953 warning("filtering not recognized by server, ignoring");
954 }