i18n: git-commit whence_s "merge/cherry-pick" message

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>
This commit is contained in:
Jiang Xin 2012-02-02 01:20:30 +08:00 committed by Junio C Hamano
parent 828ea97de4
commit be39de2b26

View File

@ -196,16 +196,16 @@ static void determine_whence(struct wt_status *s)
static const char *whence_s(void) static const char *whence_s(void)
{ {
char *s = ""; const char *s = "";
switch (whence) { switch (whence) {
case FROM_COMMIT: case FROM_COMMIT:
break; break;
case FROM_MERGE: case FROM_MERGE:
s = "merge"; s = _("merge");
break; break;
case FROM_CHERRY_PICK: case FROM_CHERRY_PICK:
s = "cherry-pick"; s = _("cherry-pick");
break; break;
} }