i18n: connect: mark die messages for translation
Mark messages passed to die() in die_initial_contact(). Update test to reflect changes. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Vasco Almeida committed
Sep 19, 2016 at 13:08 UTC
f2b93b388ccbce342bc8b58d8581f6a077f42eff
2 files changed
+5
-5
connect.c
+4
-4
@@ -46,11 +46,11 @@ int check_ref_type(const struct ref *ref, int flags)
46
static void die_initial_contact(int got_at_least_one_head)
47
{
48
if (got_at_least_one_head)
49
- die("The remote end hung up upon initial contact");
49
+ die(_("The remote end hung up upon initial contact"));
50
else
51
- die("Could not read from remote repository.\n\n"
52
- "Please make sure you have the correct access rights\n"
53
- "and the repository exists.");
51
+ die(_("Could not read from remote repository.\n\n"
52
+ "Please make sure you have the correct access rights\n"
53
+ "and the repository exists."));
54
}
55
56
static void parse_one_symref_info(struct string_list *symref, const char *val, int len)
t/t5512-ls-remote.sh
+1
-1
@@ -99,7 +99,7 @@ test_expect_success 'confuses pattern as remote when no remote specified' '
99
# We could just as easily have used "master"; the "*" emphasizes its
100
# role as a pattern.
101
test_must_fail git ls-remote refs*master >actual 2>&1 &&
102
- test_cmp exp actual
102
+ test_i18ncmp exp actual
103
'
104
105
test_expect_success 'die with non-2 for wrong repository even with --exit-code' '