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

[PATCH 5/9] gitk i18n: More i18n markup: findtype options menu.

From
Christian Stimming <stimming@tuhh.de>
Date
Nov 7, 2007, 17:44 UTC
Message-ID
<200711071844.36091.stimming@tuhh.de>
In-Reply-To
<200711071844.03106.stimming@tuhh.de>
---
 gitk |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/gitk b/gitk
index e291577..777ee20 100755
--- a/gitk
+++ b/gitk
@@ -784,9 +784,9 @@ proc makewindow {} {
     lappend entries $fstring
     entry $fstring -width 30 -font textfont -textvariable findstring
     trace add variable findstring write find_change
-    set findtype Exact
+    set findtype [mc "Exact"]
     set findtypemenu [tk_optionMenu .tf.lbar.findtype \
-		      findtype Exact IgnCase Regexp]
+		      findtype [mc "Exact"] [mc "IgnCase"] [mc "Regexp"]]
     trace add variable findtype write findcom_change
     .tf.lbar.findtype configure -font uifont
     .tf.lbar.findtype.menu configure -font uifont
@@ -2362,7 +2362,7 @@ proc findcom_change args {
     unmarkmatches
     if {$gdttype ne "containing:" || $findstring eq {}} {
 	set findpattern {}
-    } elseif {$findtype eq "Regexp"} {
+    } elseif {$findtype eq [mc "Regexp"]} {
 	set findpattern $findstring
     } else {
 	set e [string map {"*" "\\*" "?" "\\?" "\[" "\\\[" "\\" "\\\\"} \
@@ -2469,9 +2469,9 @@ proc readfhighlight {} {
 proc doesmatch {f} {
     global findtype findpattern
 
-    if {$findtype eq "Regexp"} {
+    if {$findtype eq [mc "Regexp"]} {
 	return [regexp $findpattern $f]
-    } elseif {$findtype eq "IgnCase"} {
+    } elseif {$findtype eq [mc "IgnCase"]} {
 	return [string match -nocase $findpattern $f]
     } else {
 	return [string match $findpattern $f]
@@ -4226,11 +4226,11 @@ proc notbusy {what} {
 
 proc findmatches {f} {
     global findtype findstring
-    if {$findtype == "Regexp"} {
+    if {$findtype == [mc "Regexp"]} {
 	set matches [regexp -indices -all -inline $findstring $f]
     } else {
 	set fs $findstring
-	if {$findtype == "IgnCase"} {
+	if {$findtype == [mc "IgnCase"]} {
 	    set f [string tolower $f]
 	    set fs [string tolower $fs]
 	}
-- 
1.5.3.4.206.g58ba4
Previous: Christian StimmingNext: Christian Stimming
Message 5 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.