OSDN Git Service

gitk: Use translated version of "Command line" in getcommitlines
authorMarc Branchaud <marcnarc@xiplink.com>
Tue, 7 Apr 2015 15:53:37 +0000 (11:53 -0400)
committerPaul Mackerras <paulus@samba.org>
Sun, 17 May 2015 04:26:46 +0000 (14:26 +1000)
This is needed for getcommitlines to work properly when a language
translation is being used.

Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk

diff --git a/gitk b/gitk
index 68c6e70..2cb12bd 100755 (executable)
--- 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.)"