1
0
mirror of https://github.com/git/git.git synced 2024-09-23 12:01:15 +02:00

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>
This commit is contained in:
Vasco Almeida 2016-09-19 13:08:17 +00:00 committed by Junio C Hamano
parent 4fa4b31507
commit f2b93b388c
2 changed files with 5 additions and 5 deletions

View File

@ -46,11 +46,11 @@ int check_ref_type(const struct ref *ref, int flags)
static void die_initial_contact(int got_at_least_one_head) static void die_initial_contact(int got_at_least_one_head)
{ {
if (got_at_least_one_head) if (got_at_least_one_head)
die("The remote end hung up upon initial contact"); die(_("The remote end hung up upon initial contact"));
else else
die("Could not read from remote repository.\n\n" die(_("Could not read from remote repository.\n\n"
"Please make sure you have the correct access rights\n" "Please make sure you have the correct access rights\n"
"and the repository exists."); "and the repository exists."));
} }
static void parse_one_symref_info(struct string_list *symref, const char *val, int len) static void parse_one_symref_info(struct string_list *symref, const char *val, int len)

View File

@ -99,7 +99,7 @@ test_expect_success 'confuses pattern as remote when no remote specified' '
# We could just as easily have used "master"; the "*" emphasizes its # We could just as easily have used "master"; the "*" emphasizes its
# role as a pattern. # role as a pattern.
test_must_fail git ls-remote refs*master >actual 2>&1 && test_must_fail git ls-remote refs*master >actual 2>&1 &&
test_cmp exp actual test_i18ncmp exp actual
' '
test_expect_success 'die with non-2 for wrong repository even with --exit-code' ' test_expect_success 'die with non-2 for wrong repository even with --exit-code' '