Skip to content

Commit 919a4ce

Browse files
avargitster
authored andcommitted
i18n: git-status "Changes to be committed" message
Gettextize the "# Changes to be committed:" messages. Several tests explicitly checked for this message. Change them to skip under GETTEXT_POISON=YesPlease. Since these tests didn't check for the rest of the git-status(1) output this change has been split up from the "git-status basic messages" patch. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 98f5e24 commit 919a4ce

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

t/t7502-commit.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -384,66 +384,66 @@ try_commit () {
384384

385385
try_commit_status_combo () {
386386

387-
test_expect_success 'commit' '
387+
test_expect_success C_LOCALE_OUTPUT 'commit' '
388388
clear_config commit.status &&
389389
try_commit "" &&
390390
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
391391
'
392392

393-
test_expect_success 'commit' '
393+
test_expect_success C_LOCALE_OUTPUT 'commit' '
394394
clear_config commit.status &&
395395
try_commit "" &&
396396
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
397397
'
398398

399-
test_expect_success 'commit --status' '
399+
test_expect_success C_LOCALE_OUTPUT 'commit --status' '
400400
clear_config commit.status &&
401401
try_commit --status &&
402402
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
403403
'
404404

405-
test_expect_success 'commit --no-status' '
405+
test_expect_success C_LOCALE_OUTPUT 'commit --no-status' '
406406
clear_config commit.status &&
407407
try_commit --no-status &&
408408
! grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
409409
'
410410

411-
test_expect_success 'commit with commit.status = yes' '
411+
test_expect_success C_LOCALE_OUTPUT 'commit with commit.status = yes' '
412412
clear_config commit.status &&
413413
git config commit.status yes &&
414414
try_commit "" &&
415415
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
416416
'
417417

418-
test_expect_success 'commit with commit.status = no' '
418+
test_expect_success C_LOCALE_OUTPUT 'commit with commit.status = no' '
419419
clear_config commit.status &&
420420
git config commit.status no &&
421421
try_commit "" &&
422422
! grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
423423
'
424424

425-
test_expect_success 'commit --status with commit.status = yes' '
425+
test_expect_success C_LOCALE_OUTPUT 'commit --status with commit.status = yes' '
426426
clear_config commit.status &&
427427
git config commit.status yes &&
428428
try_commit --status &&
429429
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
430430
'
431431

432-
test_expect_success 'commit --no-status with commit.status = yes' '
432+
test_expect_success C_LOCALE_OUTPUT 'commit --no-status with commit.status = yes' '
433433
clear_config commit.status &&
434434
git config commit.status yes &&
435435
try_commit --no-status &&
436436
! grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
437437
'
438438

439-
test_expect_success 'commit --status with commit.status = no' '
439+
test_expect_success C_LOCALE_OUTPUT 'commit --status with commit.status = no' '
440440
clear_config commit.status &&
441441
git config commit.status no &&
442442
try_commit --status &&
443443
grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
444444
'
445445

446-
test_expect_success 'commit --no-status with commit.status = no' '
446+
test_expect_success C_LOCALE_OUTPUT 'commit --no-status with commit.status = no' '
447447
clear_config commit.status &&
448448
git config commit.status no &&
449449
try_commit --no-status &&

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void wt_status_print_cached_header(struct wt_status *s)
148148
{
149149
const char *c = color(WT_STATUS_HEADER, s);
150150

151-
status_printf_ln(s, c, "Changes to be committed:");
151+
status_printf_ln(s, c, _("Changes to be committed:"));
152152
if (!advice_status_hints)
153153
return;
154154
if (s->in_merge)

0 commit comments

Comments
 (0)