]> git.ipfire.org Git - thirdparty/git.git/commitdiff
i18n: fix some badly formatted i18n strings
authorJean-Noël Avila <jn.avila@free.fr>
Mon, 11 Apr 2022 19:23:30 +0000 (19:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Apr 2022 21:13:46 +0000 (14:13 -0700)
String in submodule--helper is not correctly formatting
placeholders. The string in git-send-email is partial.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-send-email.perl

index 0b8b226c8ff9e6aa3d0b04cb8802a28df3ce534a..2c87ef9364fa6d0bf1b7d387a0642c0b4963c55b 100644 (file)
@@ -3082,7 +3082,7 @@ static int module_create_branch(int argc, const char **argv, const char *prefix)
                OPT_END()
        };
        const char *const usage[] = {
-               N_("git submodule--helper create-branch [-f|--force] [--create-reflog] [-q|--quiet] [-t|--track] [-n|--dry-run] <name> <start_oid> <start_name>"),
+               N_("git submodule--helper create-branch [-f|--force] [--create-reflog] [-q|--quiet] [-t|--track] [-n|--dry-run] <name> <start-oid> <start-name>"),
                NULL
        };
 
index a98460bdb96580fe52e3029499c946874ac86ffc..5861e99a6eb2a16bb45e759645e124a66a50e107 100755 (executable)
@@ -2096,10 +2096,9 @@ sub validate_patch {
                        chdir($cwd_save) or die("chdir: $!");
                }
                if ($hook_error) {
-                       $hook_error = sprintf(__("fatal: %s: rejected by %s hook\n" .
-                                                $hook_error . "\n" .
-                                                "warning: no patches were sent\n"),
-                                             $fn, $hook_name);
+                       $hook_error = sprintf(
+                           __("fatal: %s: rejected by %s hook\n%s\nwarning: no patches were sent\n"),
+                           $fn, $hook_name, $hook_error);
                        die $hook_error;
                }
        }