зеркало из https://github.com/microsoft/git.git
i18n: git-revert "Your local changes" message
Translate the "Your local changes [...]" message without using the `me' variable, instead split up the two messages so translators can translate the whole messages as-is. Reported-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
f30f71ce7a
Коммит
d3ee177e50
|
@ -302,11 +302,19 @@ static NORETURN void die_dirty_index(const char *me)
|
||||||
if (read_cache_unmerged()) {
|
if (read_cache_unmerged()) {
|
||||||
die_resolve_conflict(me);
|
die_resolve_conflict(me);
|
||||||
} else {
|
} else {
|
||||||
if (advice_commit_before_merge)
|
if (advice_commit_before_merge) {
|
||||||
die("Your local changes would be overwritten by %s.\n"
|
if (action == REVERT)
|
||||||
"Please, commit your changes or stash them to proceed.", me);
|
die(_("Your local changes would be overwritten by revert.\n"
|
||||||
|
"Please, commit your changes or stash them to proceed."));
|
||||||
else
|
else
|
||||||
die("Your local changes would be overwritten by %s.\n", me);
|
die(_("Your local changes would be overwritten by cherry-pick.\n"
|
||||||
|
"Please, commit your changes or stash them to proceed."));
|
||||||
|
} else {
|
||||||
|
if (action == REVERT)
|
||||||
|
die(_("Your local changes would be overwritten by revert.\n"));
|
||||||
|
else
|
||||||
|
die(_("Your local changes would be overwritten by cherry-pick.\n"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ test_expect_success 'cherry-pick on stat-dirty working tree' '
|
||||||
)
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'revert forbidden on dirty working tree' '
|
test_expect_success C_LOCALE_OUTPUT 'revert forbidden on dirty working tree' '
|
||||||
|
|
||||||
echo content >extra_file &&
|
echo content >extra_file &&
|
||||||
git add extra_file &&
|
git add extra_file &&
|
||||||
|
|
Загрузка…
Ссылка в новой задаче