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

[PATCH 8/9] gitk i18n: More i18n markup: gdttype optionmenu.

From
Christian Stimming <stimming@tuhh.de>
Date
Nov 7, 2007, 17:46 UTC
Message-ID
<200711071846.14097.stimming@tuhh.de>
In-Reply-To
<200711071845.40236.stimming@tuhh.de>
---
 gitk |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/gitk b/gitk
index 3acb0be..b861f8d 100755
--- a/gitk
+++ b/gitk
@@ -769,11 +769,11 @@ proc makewindow {} {
     label .tf.lbar.flab2 -text " [mc "commit"] " -font uifont
     pack .tf.lbar.flabel .tf.lbar.fnext .tf.lbar.fprev .tf.lbar.flab2 \
 	-side left -fill y
-    set gdttype "containing:"
+    set gdttype [mc "containing:"]
     set gm [tk_optionMenu .tf.lbar.gdttype gdttype \
-		"containing:" \
-		"touching paths:" \
-		"adding/removing string:"]
+		[mc "containing:"] \
+		[mc "touching paths:"] \
+		[mc "adding/removing string:"]]
     trace add variable gdttype write gdttype_change
     $gm conf -font uifont
     .tf.lbar.gdttype conf -font uifont
@@ -1743,12 +1743,12 @@ proc flist_hl {only} {
     global flist_menu_file findstring gdttype
 
     set x [shellquote $flist_menu_file]
-    if {$only || $findstring eq {} || $gdttype ne "touching paths:"} {
+    if {$only || $findstring eq {} || $gdttype ne [mc "touching paths:"]} {
 	set findstring $x
     } else {
 	append findstring " " $x
     }
-    set gdttype "touching paths:"
+    set gdttype [mc "touching paths:"]
 }
 
 # Functions for adding and removing shell-type quoting
@@ -2313,7 +2313,7 @@ proc gdttype_change {name ix op} {
 
     stopfinding
     if {$findstring ne {}} {
-	if {$gdttype eq "containing:"} {
+	if {$gdttype eq [mc "containing:"]} {
 	    if {$highlight_files ne {}} {
 		set highlight_files {}
 		hfiles_change
@@ -2336,7 +2336,7 @@ proc find_change {name ix op} {
     global gdttype findstring highlight_files
 
     stopfinding
-    if {$gdttype eq "containing:"} {
+    if {$gdttype eq [mc "containing:"]} {
 	findcom_change
     } else {
 	if {$highlight_files ne $findstring} {
@@ -2360,7 +2360,7 @@ proc findcom_change args {
     catch {unset nhighlights}
     unbolden
     unmarkmatches
-    if {$gdttype ne "containing:" || $findstring eq {}} {
+    if {$gdttype ne [mc "containing:"] || $findstring eq {}} {
 	set findpattern {}
     } elseif {$findtype eq [mc "Regexp"]} {
 	set findpattern $findstring
@@ -2388,12 +2388,12 @@ proc makepatterns {l} {
 proc do_file_hl {serial} {
     global highlight_files filehighlight highlight_paths gdttype fhl_list
 
-    if {$gdttype eq "touching paths:"} {
+    if {$gdttype eq [mc "touching paths:"]} {
 	if {[catch {set paths [shellsplit $highlight_files]}]} return
 	set highlight_paths [makepatterns $paths]
 	highlight_filelist
 	set gdtargs [concat -- $paths]
-    } elseif {$gdttype eq "adding/removing string:"} {
+    } elseif {$gdttype eq [mc "adding/removing string:"]} {
 	set gdtargs [list "-S$highlight_files"]
     } else {
 	# must be "containing:", i.e. we're searching commit info
@@ -4325,7 +4325,7 @@ proc findmore {} {
     }
     set found 0
     set domore 1
-    if {$gdttype eq "containing:"} {
+    if {$gdttype eq [mc "containing:"]} {
 	for {} {$n > 0} {incr n -1; incr l $find_dirn} {
 	    set id [lindex $displayorder $l]
 	    # shouldn't happen unless git log doesn't give all the commits...
-- 
1.5.3.4.206.g58ba4
Previous: Christian StimmingNext: Christian Stimming
Message 8 of 13 in “gitk i18n implementation: Add Makefile with rules for po file creation and installation.”
  1. 1/9 gitk i18n implementation: Add Makefile with rules for po file creation and installation.Christian Stimming, Nov 7, 2007
  2. 2/9 gitk i18n implementation: Import msgcat for message string translation; load translation catalogs.Christian Stimming, Nov 7, 2007
  3. 3/9 gitk i18n implementation: Markup many strings for translation.Christian Stimming, Nov 7, 2007
  4. 4/9 gitk i18n: Initial German translation.Christian Stimming, Nov 7, 2007
  5. 5/9 gitk i18n: More i18n markup: findtype options menu.Christian Stimming, Nov 7, 2007
  6. 6/9 gitk i18n: More i18n markup: highlight_related and selectedhlview options menu.Christian Stimming, Nov 7, 2007
  7. 7/9 gitk i18n: More i18n markup: findloc optionmenu.Christian Stimming, Nov 7, 2007
  8. 8/9 gitk i18n: More i18n markup: gdttype optionmenu.Christian Stimming, Nov 7, 2007
  9. 9/9 gitk i18n: Recode gitk from latin1 to utf8 so that the (c) copyright character is valid utf8.Christian Stimming, Nov 7, 2007
  10. Paul MackerrasDec 11, 2007
  11. Christian StimmingDec 12, 2007
  12. Junio C HamanoNov 7, 2007
  13. Christian StimmingNov 7, 2007

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.