Skip to content

Commit a80897c

Browse files
pcloudsgitster
authored andcommitted
dir.c: mark more strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d26a328 commit a80897c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dir.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ int report_path_error(const char *ps_matched,
560560
if (found_dup)
561561
continue;
562562

563-
error("pathspec '%s' did not match any file(s) known to git",
563+
error(_("pathspec '%s' did not match any file(s) known to git"),
564564
pathspec->items[num].original);
565565
errors++;
566566
}
@@ -949,7 +949,7 @@ static void add_excludes_from_file_1(struct dir_struct *dir, const char *fname,
949949
dir->unmanaged_exclude_files++;
950950
el = add_exclude_list(dir, EXC_FILE, fname);
951951
if (add_excludes(fname, "", 0, el, NULL, oid_stat) < 0)
952-
die("cannot use %s as an exclude file", fname);
952+
die(_("cannot use %s as an exclude file"), fname);
953953
}
954954

955955
void add_excludes_from_file(struct dir_struct *dir, const char *fname)
@@ -3028,7 +3028,7 @@ static void connect_wt_gitdir_in_nested(const char *sub_worktree,
30283028
return;
30293029

30303030
if (repo_read_index(&subrepo) < 0)
3031-
die("index file corrupt in repo %s", subrepo.gitdir);
3031+
die(_("index file corrupt in repo %s"), subrepo.gitdir);
30323032

30333033
for (i = 0; i < subrepo.index->cache_nr; i++) {
30343034
const struct cache_entry *ce = subrepo.index->cache[i];

t/t3005-ls-files-relative.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test_expect_success 'ls-files -c' '
5050
ls ../x* >expect.out &&
5151
test_must_fail git ls-files -c --error-unmatch ../[xy]* >actual.out 2>actual.err &&
5252
test_cmp expect.out actual.out &&
53-
test_cmp expect.err actual.err
53+
test_i18ncmp expect.err actual.err
5454
)
5555
'
5656

@@ -65,7 +65,7 @@ test_expect_success 'ls-files -o' '
6565
ls ../y* >expect.out &&
6666
test_must_fail git ls-files -o --error-unmatch ../[xy]* >actual.out 2>actual.err &&
6767
test_cmp expect.out actual.out &&
68-
test_cmp expect.err actual.err
68+
test_i18ncmp expect.err actual.err
6969
)
7070
'
7171

t/t7400-submodule-basic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ test_expect_success 'init should register submodule url in .git/config' '
377377

378378
test_failure_with_unknown_submodule () {
379379
test_must_fail git submodule $1 no-such-submodule 2>output.err &&
380-
grep "^error: .*no-such-submodule" output.err
380+
test_i18ngrep "^error: .*no-such-submodule" output.err
381381
}
382382

383383
test_expect_success 'init should fail with unknown submodule' '

0 commit comments

Comments
 (0)