From 5da9560ebc8a089807920a7548141e4e5b60a4dc Mon Sep 17 00:00:00 2001 From: Fangyi Zhou Date: Wed, 6 Apr 2022 21:32:57 +0100 Subject: submodule-helper: fix usage string The missing space at the end of the line makes the closing square bracket sticking to the dash in the next line Found during localisation v2.36.0 round 1 Signed-off-by: Fangyi Zhou Signed-off-by: Junio C Hamano --- builtin/submodule--helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/submodule--helper.c') diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 11552970f2..447c5cfe84 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -1895,7 +1895,7 @@ static int module_clone(int argc, const char **argv, const char *prefix) const char *const git_submodule_helper_usage[] = { N_("git submodule--helper clone [--prefix=] [--quiet] " "[--reference ] [--name ] [--depth ] " - "[--single-branch] [--filter ]" + "[--single-branch] [--filter ] " "--url --path "), NULL }; -- cgit v1.3 From af15f84da731e59197af147497868f684b8c5650 Mon Sep 17 00:00:00 2001 From: Jean-Noël Avila Date: Mon, 11 Apr 2022 19:23:30 +0000 Subject: i18n: fix some badly formatted i18n strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit String in submodule--helper is not correctly formatting placeholders. The string in git-send-email is partial. Signed-off-by: Jean-Noël Avila Signed-off-by: Junio C Hamano --- builtin/submodule--helper.c | 2 +- git-send-email.perl | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'builtin/submodule--helper.c') diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 0b8b226c8f..2c87ef9364 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -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] "), + N_("git submodule--helper create-branch [-f|--force] [--create-reflog] [-q|--quiet] [-t|--track] [-n|--dry-run] "), NULL }; diff --git a/git-send-email.perl b/git-send-email.perl index a98460bdb9..5861e99a6e 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -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; } } -- cgit v1.3