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

[PATCH] gitk: Use translated version of "Command line" in getcommitlines.

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Apr 7, 2015, 15:53 UTC
Message-ID
<1428422017-20645-1-git-send-email-marcnarc@xiplink.com>
Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
---

I noticed this today. I think this change is needed for getcommitlines to work properly with translated gitk's.

		M.
 gitk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gitk b/gitk
index 90419e3..fd5b50a 100755
--- a/gitk
+++ b/gitk
@@ -1442,7 +1442,7 @@ proc getcommitlines {fd inst view updating}  {
 	    if {[string range $err 0 4] == "usage"} {
 		set err "Gitk: error reading commits$fv:\
 			bad arguments to git log."
-		if {$viewname($view) eq "Command line"} {
+		if {$viewname($view) eq [mc "Command line"]} {
 		    append err \
 			"  (Note: arguments to gitk are passed to git log\
 			 to allow selection of commits to be displayed.)"
-- 
2.3.5
Next: Paul Mackerras
Message 1 of 2 in “gitk: Use translated version of "Command line" in getcommitlines.”
  1. gitk: Use translated version of "Command line" in getcommitlines.Marc Branchaud, Apr 7, 2015
  2. Paul MackerrasMay 17, 2015

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.