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

[PATCH 5/5] git-gui i18n: mark string in lib/error.tcl for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
May 8, 2016, 10:52 UTC
Message-ID
<1462704778-4722-5-git-send-email-vascomalmeida@sapo.pt>
In-Reply-To
<1462704778-4722-1-git-send-email-vascomalmeida@sapo.pt>
Mark string "$hook hook failed:" in lib/error.tcl for translation.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 lib/error.tcl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/error.tcl b/lib/error.tcl
index 71dc860..8968a57 100644
--- a/lib/error.tcl
+++ b/lib/error.tcl
@@ -77,7 +77,7 @@ proc hook_failed_popup {hook msg {is_fatal 1}} {
 	wm withdraw $w
 
 	${NS}::frame $w.m
-	${NS}::label $w.m.l1 -text "$hook hook failed:" \
+	${NS}::label $w.m.l1 -text [mc "%s hook failed:" $hook] \
 		-anchor w \
 		-justify left \
 		-font font_uibold
-- 
2.7.3
Previous: Pat ThoytsNext: Pat Thoyts
Message 6 of 8 in “git-gui i18n: mark strings for translation”
  1. 1/5 git-gui i18n: mark strings for translationVasco Almeida, May 8, 2016
  2. 2/5 git-gui i18n: internationalize use of colon punctuationVasco Almeida, May 8, 2016
  3. 3/5 git-gui i18n: mark "usage:" strings for translationVasco Almeida, May 8, 2016
  4. 4/5 git-gui: fix incorrect use of Tcl append commandVasco Almeida, May 8, 2016
  5. Pat ThoytsOct 3, 2016
  6. 5/5 git-gui i18n: mark string in lib/error.tcl for translationVasco Almeida, May 8, 2016
  7. Pat ThoytsOct 3, 2016
  8. Vasco AlmeidaOct 3, 2016

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.