dir.c: mark more strings for translation

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jul 21, 2018 at 09:49 UTC a80897c1e9e853d32457dd2343e9029fdce6091e
3 files changed +6 -6
dir.c
+3 -3
@@ -560,7 +560,7 @@ int report_path_error(const char *ps_matched,
560 if (found_dup)
561 continue;
562
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"),
564 pathspec->items[num].original);
565 errors++;
566 }
@@ -949,7 +949,7 @@ static void add_excludes_from_file_1(struct dir_struct *dir, const char *fname,
949 dir->unmanaged_exclude_files++;
950 el = add_exclude_list(dir, EXC_FILE, fname);
951 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);
953 }
954
955 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,
3028 return;
3029
3030 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);
3032
3033 for (i = 0; i < subrepo.index->cache_nr; i++) {
3034 const struct cache_entry *ce = subrepo.index->cache[i];
t/t3005-ls-files-relative.sh
+2 -2
@@ -50,7 +50,7 @@ test_expect_success 'ls-files -c' '
50 ls ../x* >expect.out &&
51 test_must_fail git ls-files -c --error-unmatch ../[xy]* >actual.out 2>actual.err &&
52 test_cmp expect.out actual.out &&
53 - test_cmp expect.err actual.err
53 + test_i18ncmp expect.err actual.err
54 )
55 '
56
@@ -65,7 +65,7 @@ test_expect_success 'ls-files -o' '
65 ls ../y* >expect.out &&
66 test_must_fail git ls-files -o --error-unmatch ../[xy]* >actual.out 2>actual.err &&
67 test_cmp expect.out actual.out &&
68 - test_cmp expect.err actual.err
68 + test_i18ncmp expect.err actual.err
69 )
70 '
71
t/t7400-submodule-basic.sh
+1 -1
@@ -377,7 +377,7 @@ test_expect_success 'init should register submodule url in .git/config' '
377
378 test_failure_with_unknown_submodule () {
379 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
381 }
382
383 test_expect_success 'init should fail with unknown submodule' '