Skip to content

Commit be39de2

Browse files
jiangxingitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 828ea97 commit be39de2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/commit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,16 @@ static void determine_whence(struct wt_status *s)
196196

197197
static const char *whence_s(void)
198198
{
199-
char *s = "";
199+
const char *s = "";
200200

201201
switch (whence) {
202202
case FROM_COMMIT:
203203
break;
204204
case FROM_MERGE:
205-
s = "merge";
205+
s = _("merge");
206206
break;
207207
case FROM_CHERRY_PICK:
208-
s = "cherry-pick";
208+
s = _("cherry-pick");
209209
break;
210210
}
211211

0 commit comments

Comments
 (0)