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

[PATCH 3/5] git-gui i18n: mark "usage:" strings for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
May 8, 2016, 10:52 UTC
Message-ID
<1462704778-4722-3-git-send-email-vascomalmeida@sapo.pt>
In-Reply-To
<1462704778-4722-1-git-send-email-vascomalmeida@sapo.pt>
Mark command-line "usage:" string for translation in git-gui.sh.
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 git-gui.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-gui.sh b/git-gui.sh
index 11048c7..4ae344f 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3007,7 +3007,7 @@ bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
 
 set subcommand_args {}
 proc usage {} {
-	set s "usage: $::argv0 $::subcommand $::subcommand_args"
+	set s "[mc usage:] $::argv0 $::subcommand $::subcommand_args"
 	if {[tk windowingsystem] eq "win32"} {
 		wm withdraw .
 		tk_messageBox -icon info -message $s \
@@ -3139,7 +3139,7 @@ gui {
 	# fall through to setup UI for commits
 }
 default {
-	set err "usage: $argv0 \[{blame|browser|citool}\]"
+	set err "[mc usage:] $argv0 \[{blame|browser|citool}\]"
 	if {[tk windowingsystem] eq "win32"} {
 		wm withdraw .
 		tk_messageBox -icon error -message $err \
-- 
2.7.3
Previous: Vasco AlmeidaNext: Vasco Almeida
Message 3 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.