]> git.ipfire.org Git - thirdparty/git.git/commit
refs: mark invalid refname message for translation
authorKarthik Nayak <karthik.188@gmail.com>
Fri, 20 Dec 2024 12:58:37 +0000 (13:58 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2024 15:52:44 +0000 (07:52 -0800)
commit8ddcdc1bb33ccf803461dd2365146f9341bf9312
tree25f50d98df685310c68adbc061abe9dd9babcbad
parent246cebe3205694ce19eceaa795d20f24ba762c49
refs: mark invalid refname message for translation

The error message produced by `transaction_refname_valid()` changes based
on whether the update is a ref update or a reflog update, with the use
of a ternary operator. This breaks translation since the sub-msg is not
marked for translation. Fix this by setting the entire message using a
`if {} else {}` block and marking each message for translation.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c