summaryrefslogtreecommitdiff
path: root/merge-ort.c
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2021-05-09 21:52:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-05-11 03:26:01 (GMT)
commit0e59f7ad67d9bf9153d405577a07b5c360c55f41 (patch)
treef5decd20c325f3be71715cc073e4d4713b85d40b /merge-ort.c
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7 (diff)
downloadgit-0e59f7ad67d9bf9153d405577a07b5c360c55f41.zip
git-0e59f7ad67d9bf9153d405577a07b5c360c55f41.tar.gz
git-0e59f7ad67d9bf9153d405577a07b5c360c55f41.tar.bz2
merge-ort: split "distinct types" message into two translatable messages
The word "renamed" has two possible translations in many European languages depending on whether one thing was renamed or two things were renamed. Give translators freedom to alter any part of the message to make it sound right in their language. Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Acked-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-ort.c')
-rw-r--r--merge-ort.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/merge-ort.c b/merge-ort.c
index 92dea35..403f840 100644
--- a/merge-ort.c
+++ b/merge-ort.c
@@ -2803,12 +2803,21 @@ static void process_entry(struct merge_options *opt,
rename_b = 1;
}
- path_msg(opt, path, 0,
- _("CONFLICT (distinct types): %s had different "
- "types on each side; renamed %s of them so "
- "each can be recorded somewhere."),
- path,
- (rename_a && rename_b) ? _("both") : _("one"));
+ if (rename_a && rename_b) {
+ path_msg(opt, path, 0,
+ _("CONFLICT (distinct types): %s had "
+ "different types on each side; "
+ "renamed both of them so each can "
+ "be recorded somewhere."),
+ path);
+ } else {
+ path_msg(opt, path, 0,
+ _("CONFLICT (distinct types): %s had "
+ "different types on each side; "
+ "renamed one of them so each can be "
+ "recorded somewhere."),
+ path);
+ }
ci->merged.clean = 0;
memcpy(new_ci, ci, sizeof(*new_ci));