Thread (1 message) 1 message, 1 author, 2021-05-10

Re: [PATCH] graph: improve grammar of "invalid color" error message

From: Junio C Hamano <hidden>
Date: 2021-05-10 06:10:52

Eric Sunshine [off-list ref] writes:
On Sun, May 9, 2021 at 5:23 PM Alex Henrie [off-list ref] wrote:
quoted
Without the "d", it sounds like a command, not an error, and is liable
to be translated incorrectly.

Signed-off-by: Alex Henrie <redacted>
---
diff --git a/graph.c b/graph.c
@@ -95,7 +95,7 @@ static void parse_graph_colors_config(struct strvec *colors, const char *string)
-                       warning(_("ignore invalid color '%.*s' in log.graphColors"),
+                       warning(_("ignored invalid color '%.*s' in log.graphColors"),
Another possibility: "ignoring invalid color ... in ..."

Even better: "invalid color ... in ..."
The last one, if it does not say what we did to that invalid thing,
is not as helpful as Alex's or your "another possibility".

Betweein "ignored" vs "ignoring", I do not have a preference, but
whichever one is more prevalent in our existing messages should be
used, I would think.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help