diff mbox series

i18n: fix typos found during l10n for git 2.34.0

Message ID 20211031052156.5237-1-worldhello.net@gmail.com (mailing list archive)
State Superseded
Headers show
Series i18n: fix typos found during l10n for git 2.34.0 | expand

Commit Message

Jiang Xin Oct. 31, 2021, 5:21 a.m. UTC
Emir reported typos in some i18n messages in the pull request[1] of
Turkish language l10n for git 2.34.0.

* Use stable spelling for config variable "gpg.ssh.defaultKeyCommand".
* Add missing space between "with" and "--python".

[1] https://github.com/git-l10n/git-po/pull/567

Reported-by: Emir Sarı <bitigchi@me.com>
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
---
 gpg-interface.c | 2 +-
 ref-filter.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

ZheNing Hu Nov. 2, 2021, 11:28 a.m. UTC | #1
Jiang Xin <worldhello.net@gmail.com> 于2021年10月31日周日 下午1:25写道:
>
> Emir reported typos in some i18n messages in the pull request[1] of
> Turkish language l10n for git 2.34.0.
>
> * Use stable spelling for config variable "gpg.ssh.defaultKeyCommand".
> * Add missing space between "with" and "--python".
>
> [1] https://github.com/git-l10n/git-po/pull/567
>
> Reported-by: Emir Sarı <bitigchi@me.com>
> Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
> ---
>  gpg-interface.c | 2 +-
>  ref-filter.c    | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gpg-interface.c b/gpg-interface.c
> index 800d8caa67..68d2f29be7 100644
> --- a/gpg-interface.c
> +++ b/gpg-interface.c
> @@ -775,7 +775,7 @@ static const char *get_default_ssh_signing_key(void)
>                 if (keys[0] && starts_with(keys[0]->buf, "ssh-")) {
>                         default_key = strbuf_detach(keys[0], NULL);
>                 } else {
> -                       warning(_("gpg.ssh.defaultKeycommand succeeded but returned no keys: %s %s"),
> +                       warning(_("gpg.ssh.defaultKeyCommand succeeded but returned no keys: %s %s"),
>                                 key_stderr.buf, key_stdout.buf);
>                 }
>
> diff --git a/ref-filter.c b/ref-filter.c
> index 282cdad103..08a3f839c9 100644
> --- a/ref-filter.c
> +++ b/ref-filter.c
> @@ -1037,7 +1037,7 @@ int verify_ref_format(struct ref_format *format)
>                      format->quote_style == QUOTE_TCL) &&
>                      used_atom[at].atom_type == ATOM_RAW &&
>                      used_atom[at].u.raw_data.option == RAW_BARE)
> -                       die(_("--format=%.*s cannot be used with"
> +                       die(_("--format=%.*s cannot be used with "
>                               "--python, --shell, --tcl"), (int)(ep - sp - 2), sp + 2);
>                 cp = ep + 1;
>

It is my negligence. Thanks.

> --
> 2.34.0.rc0.8.g1f511a9b56
>

--
ZheNing Hu
diff mbox series

Patch

diff --git a/gpg-interface.c b/gpg-interface.c
index 800d8caa67..68d2f29be7 100644
--- a/gpg-interface.c
+++ b/gpg-interface.c
@@ -775,7 +775,7 @@  static const char *get_default_ssh_signing_key(void)
 		if (keys[0] && starts_with(keys[0]->buf, "ssh-")) {
 			default_key = strbuf_detach(keys[0], NULL);
 		} else {
-			warning(_("gpg.ssh.defaultKeycommand succeeded but returned no keys: %s %s"),
+			warning(_("gpg.ssh.defaultKeyCommand succeeded but returned no keys: %s %s"),
 				key_stderr.buf, key_stdout.buf);
 		}
 
diff --git a/ref-filter.c b/ref-filter.c
index 282cdad103..08a3f839c9 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -1037,7 +1037,7 @@  int verify_ref_format(struct ref_format *format)
 		     format->quote_style == QUOTE_TCL) &&
 		     used_atom[at].atom_type == ATOM_RAW &&
 		     used_atom[at].u.raw_data.option == RAW_BARE)
-			die(_("--format=%.*s cannot be used with"
+			die(_("--format=%.*s cannot be used with "
 			      "--python, --shell, --tcl"), (int)(ep - sp - 2), sp + 2);
 		cp = ep + 1;