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

[PATCH/RFC 14/20] gettextize: git-bisect die + gettext messages

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 14, 2010, 13:52 UTC
Message-ID
<1284472340-7049-15-git-send-email-avarab@gmail.com>
In-Reply-To
<1284472340-7049-1-git-send-email-avarab@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 git-bisect.sh |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/git-bisect.sh b/git-bisect.sh
index c294819..31ca97c 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -58,7 +58,7 @@ bisect_start() {
 	#
 	head=$(GIT_DIR="$GIT_DIR" git symbolic-ref -q HEAD) ||
 	head=$(GIT_DIR="$GIT_DIR" git rev-parse --verify HEAD) ||
-	die "Bad HEAD - I need a HEAD"
+	die "$(gettext "Bad HEAD - I need a HEAD")"
 
 	#
 	# Check if we are bisecting.
@@ -77,11 +77,11 @@ bisect_start() {
 			# cogito usage, and cogito users should understand
 			# it relates to cg-seek.
 			[ -s "$GIT_DIR/head-name" ] &&
-				die "won't bisect on seeked tree"
+				die "$(gettext "won't bisect on seeked tree")"
 			start_head="${head#refs/heads/}"
 			;;
 		*)
-			die "Bad HEAD - strange symbolic ref"
+			die "$(gettext "Bad HEAD - strange symbolic ref")"
 			;;
 		esac
 	fi
@@ -198,10 +198,10 @@ bisect_state() {
 	state=$1
 	case "$#,$state" in
 	0,*)
-		die "Please call 'bisect_state' with at least one argument." ;;
+		die "$(gettext "Please call 'bisect_state' with at least one argument.")" ;;
 	1,bad|1,good|1,skip)
 		rev=$(git rev-parse --verify HEAD) ||
-			die "Bad rev input: HEAD"
+			die "$(gettext "Bad rev input: HEAD")"
 		bisect_write "$state" "$rev"
 		check_expected_revs "$rev" ;;
 	2,bad|*,good|*,skip)
@@ -216,7 +216,7 @@ bisect_state() {
 		eval "$eval"
 		check_expected_revs "$@" ;;
 	*,bad)
-		die "'git bisect bad' can take only one argument." ;;
+		die "$(gettext "'git bisect bad' can take only one argument.")" ;;
 	*)
 		usage ;;
 	esac
@@ -355,7 +355,7 @@ bisect_replay () {
 		good|bad|skip)
 			bisect_write "$command" "$rev" ;;
 		*)
-			die "?? what are you talking about?" ;;
+			die "$(gettext "?? what are you talking about?")" ;;
 		esac
 	done <"$1"
 	bisect_auto_next
-- 
1.7.3.rc1.234.g8dc15
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 15 of 21 in “gettextize: git-stash & git-bisect”
  1. 00/20 gettextize: git-stash & git-bisectÆvar Arnfjörð Bjarmason, Sep 14, 2010
  2. 01/20 gettextize: git-stash add git-sh-i18nÆvar Arnfjörð Bjarmason, Sep 14, 2010
  3. 02/20 gettextize: git-stash echo + gettext messageÆvar Arnfjörð Bjarmason, Sep 14, 2010
  4. 03/20 gettextize: git-stash say + gettext messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  5. 04/20 gettextize: git-stash die + gettext messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  6. 05/20 gettextize: git-stash die + eval_gettext messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  7. 06/20 gettextize: git-stash die + eval_gettext $* messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  8. 07/20 gettextize: git-stash die + eval_gettext $1 messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  9. 08/20 gettextize: git-stash "unknown option" messageÆvar Arnfjörð Bjarmason, Sep 14, 2010
  10. 09/20 gettextize: git-stash drop_stash say/die messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  11. 10/20 gettextize: git-bisect add git-sh-i18nÆvar Arnfjörð Bjarmason, Sep 14, 2010
  12. 11/20 gettextize: git-bisect gettext + echo messageÆvar Arnfjörð Bjarmason, Sep 14, 2010
  13. 12/20 gettextize: git-bisect echo + gettext messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  14. 13/20 gettextize: git-bisect echo + eval_gettext messageÆvar Arnfjörð Bjarmason, Sep 14, 2010
  15. 14/20 gettextize: git-bisect die + gettext messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  16. 15/20 gettextize: git-bisect die + eval_gettext messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  17. 16/20 gettextize: git-bisect bisect_run + $@ messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  18. 17/20 gettextize: git-bisect bisect_reset + $1 messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  19. 18/20 gettextize: git-bisect bisect_replay + $1 messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  20. 19/20 gettextize: git-bisect [Y/n] messagesÆvar Arnfjörð Bjarmason, Sep 14, 2010
  21. 20/20 gettextize: git-bisect bisect_next_check "You need to" messageÆvar Arnfjörð Bjarmason, Sep 14, 2010

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.