git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] i18n: fix typos found during l10n for git 2.22.0

From
Jiang Xin <worldhello.net@gmail.com>
Date
Jun 2, 2019, 15:11 UTC
Message-ID
<20190602151122.7512-1-worldhello.net@gmail.com>
Find two typos introduced by the following commits:
+ 31fba9d3b4 (diff-parseopt: convert --[src|dst]-prefix, 2019-03-24)
+ ed8b4132c8 (remote-curl: mark all error messages for translation,
  2019-03-05)
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
---
 diff.c        | 2 +-
 remote-curl.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/diff.c b/diff.c
index 2068b1c06e..a654d46f6a 100644
--- a/diff.c
+++ b/diff.c
@@ -5354,7 +5354,7 @@ static void prep_parse_options(struct diff_options *options)
 			     N_("show the given source prefix instead of \"a/\""),
 			     PARSE_OPT_NONEG),
 		OPT_STRING_F(0, "dst-prefix", &options->b_prefix, N_("<prefix>"),
-			     N_("show the given source prefix instead of \"b/\""),
+			     N_("show the given destination prefix instead of \"b/\""),
 			     PARSE_OPT_NONEG),
 		OPT_CALLBACK_F(0, "line-prefix", options, N_("<prefix>"),
 			       N_("prepend an additional prefix to every line of output"),
diff --git a/remote-curl.c b/remote-curl.c
index a1bf4f68c7..051f26629d 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -1117,13 +1117,13 @@ static void parse_fetch(struct strbuf *buf)
 			const char *q;
 
 			if (parse_oid_hex(p, &old_oid, &q))
-				die(_("protocol error: expected sha/ref, got %s'"), p);
+				die(_("protocol error: expected sha/ref, got '%s'"), p);
 			if (*q == ' ')
 				name = q + 1;
 			else if (!*q)
 				name = "";
 			else
-				die(_("protocol error: expected sha/ref, got %s'"), p);
+				die(_("protocol error: expected sha/ref, got '%s'"), p);
 
 			ref = alloc_ref(name);
 			oidcpy(&ref->old_oid, &old_oid);
-- 
2.22.0.rc2.14.g03eb6640cb.dirty
Next: Johannes Schindelin
Message 1 of 4 in “i18n: fix typos found during l10n for git 2.22.0”
  1. i18n: fix typos found during l10n for git 2.22.0Jiang Xin, Jun 2, 2019
  2. Johannes SchindelinJun 3, 2019
  3. Junio C HamanoJun 3, 2019
  4. [L10N] Kickoff for Git 2.22.0 round #3Jiang Xin, Jun 4, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.