Skip to content

Commit

Permalink
i18n: git-commit whence_s "merge/cherry-pick" message
Browse files Browse the repository at this point in the history
Mark the "merge/cherry-pick" messages in whence_s for translation.
These messages returned from whence_s function are used as argument
to build other messages.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jiang Xin authored and Junio C Hamano committed Feb 1, 2012
1 parent 828ea97 commit be39de2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,16 @@ static void determine_whence(struct wt_status *s)

static const char *whence_s(void)
{
char *s = "";
const char *s = "";

switch (whence) {
case FROM_COMMIT:
break;
case FROM_MERGE:
s = "merge";
s = _("merge");
break;
case FROM_CHERRY_PICK:
s = "cherry-pick";
s = _("cherry-pick");
break;
}

Expand Down

0 comments on commit be39de2

Please sign in to comment.