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

[PATCH] Mark more strings for i18n, including the status message list.

From
Christian Stimming <stimming@tuhh.de>
Date
Jul 24, 2007, 09:29 UTC
Message-ID
<20070724112922.6wiilqqdk4cwk4kc@webmail.tu-harburg.de>
In-Reply-To
<20070724112701.ndpm5fxaocks804s@webmail.tu-harburg.de>
Mark more strings for i18n, including the status message list.
Signed-off-by: Christian Stimming <stimming@tuhh.de>
---
  git-gui.sh |   49 +++++++++++++++++++++++++------------------------
  1 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/git-gui.sh b/git-gui.sh
index fa510b9..6f5533b 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1340,31 +1340,32 @@ set all_icons(O$ui_workdir) file_plain

  set max_status_desc 0
  foreach i {
-		{__ "Unmodified"}
-
-		{_M "Modified, not staged"}
-		{M_ "Staged for commit"}
-		{MM "Portions staged for commit"}
-		{MD "Staged for commit, missing"}
-
-		{_O "Untracked, not staged"}
-		{A_ "Staged for commit"}
-		{AM "Portions staged for commit"}
-		{AD "Staged for commit, missing"}
-
-		{_D "Missing"}
-		{D_ "Staged for removal"}
-		{DO "Staged for removal, still present"}
-
-		{U_ "Requires merge resolution"}
-		{UU "Requires merge resolution"}
-		{UM "Requires merge resolution"}
-		{UD "Requires merge resolution"}
+		{__ {mc "Unmodified"}}
+
+		{_M {mc "Modified, not staged"}}
+		{M_ {mc "Staged for commit"}}
+		{MM {mc "Portions staged for commit"}}
+		{MD {mc "Staged for commit, missing"}}
+
+		{_O {mc "Untracked, not staged"}}
+		{A_ {mc "Staged for commit"}}
+		{AM {mc "Portions staged for commit"}}
+		{AD {mc "Staged for commit, missing"}}
+
+		{_D {mc "Missing"}}
+		{D_ {mc "Staged for removal"}}
+		{DO {mc "Staged for removal, still present"}}
+
+		{U_ {mc "Requires merge resolution"}}
+		{UU {mc "Requires merge resolution"}}
+		{UM {mc "Requires merge resolution"}}
+		{UD {mc "Requires merge resolution"}}
  	} {
-	if {$max_status_desc < [string length [lindex $i 1]]} {
-		set max_status_desc [string length [lindex $i 1]]
+	set text [eval [lindex $i 1]]
+	if {$max_status_desc < [string length $text]} {
+		set max_status_desc [string length $text]
  	}
-	set all_descs([lindex $i 0]) [lindex $i 1]
+	set all_descs([lindex $i 0]) $text
  }
  unset i

@@ -2299,7 +2300,7 @@ proc trace_current_diff_path {varname args} {
  	} else {
  		set p $current_diff_path
  		set s [mapdesc [lindex $file_states($p) 0] $p]
-		set f {File:}
+		set f [mc "File:"]
  		set p [escape_path $p]
  		set o normal
  	}
-- 
1.5.3.rc2.12.gbc280
Previous: Christian StimmingNext: Shawn O. Pearce
Message 3 of 5 in “Re: [PATCH] Mark many more strings for i18n.”
  1. Brett SchwarzJul 23, 2007
  2. Fix translation of strings in foreach lists.Christian Stimming, Jul 24, 2007
  3. Mark more strings for i18n, including the status message list.Christian Stimming, Jul 24, 2007
  4. Shawn O. PearceJul 24, 2007
  5. Christian StimmingJul 24, 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.