aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2021-05-09 15:52:50 -0600
committerJunio C Hamano <gitster@pobox.com>2021-05-11 12:26:01 +0900
commit0e59f7ad67d9bf9153d405577a07b5c360c55f41 (patch)
treef5decd20c325f3be71715cc073e4d4713b85d40b
parentGit 2.31.1 (diff)
downloadgit-0e59f7ad67d9bf9153d405577a07b5c360c55f41.tar.gz
git-0e59f7ad67d9bf9153d405577a07b5c360c55f41.zip
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>
-rw-r--r--merge-ort.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/merge-ort.c b/merge-ort.c
index 92dea35e57..403f840e6e 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));