Skip to content

Commit c7c7c46

Browse files
committed
Merge branch 'ah/merge-ort-i18n'
An i18n fix. * ah/merge-ort-i18n: merge-ort: split "distinct types" message into two translatable messages
2 parents 483932a + 0e59f7a commit c7c7c46

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

merge-ort.c

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,12 +3050,21 @@ static void process_entry(struct merge_options *opt,
30503050
rename_b = 1;
30513051
}
30523052

3053-
path_msg(opt, path, 0,
3054-
_("CONFLICT (distinct types): %s had different "
3055-
"types on each side; renamed %s of them so "
3056-
"each can be recorded somewhere."),
3057-
path,
3058-
(rename_a && rename_b) ? _("both") : _("one"));
3053+
if (rename_a && rename_b) {
3054+
path_msg(opt, path, 0,
3055+
_("CONFLICT (distinct types): %s had "
3056+
"different types on each side; "
3057+
"renamed both of them so each can "
3058+
"be recorded somewhere."),
3059+
path);
3060+
} else {
3061+
path_msg(opt, path, 0,
3062+
_("CONFLICT (distinct types): %s had "
3063+
"different types on each side; "
3064+
"renamed one of them so each can be "
3065+
"recorded somewhere."),
3066+
path);
3067+
}
30593068

30603069
ci->merged.clean = 0;
30613070
memcpy(new_ci, ci, sizeof(*new_ci));

0 commit comments

Comments
 (0)