From: Matthew DeVore Date: Fri, 31 May 2019 18:01:56 +0000 (-0700) Subject: list-objects-filter-options: error is localizeable X-Git-Tag: v2.23.0-rc0~102^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c03bc8b1d1f992ebe43c567bb95cdb5e0273d28;p=thirdparty%2Fgit.git list-objects-filter-options: error is localizeable The "invalid filter-spec" message is user-facing and not a BUG, so make it localizeable. For reference, the message appears in this context: $ git rev-list --filter=blob:nonse --objects HEAD fatal: invalid filter-spec 'blob:nonse' Signed-off-by: Matthew DeVore Signed-off-by: Junio C Hamano --- diff --git a/list-objects-filter-options.c b/list-objects-filter-options.c index e8da2e8581..d0a5362331 100644 --- a/list-objects-filter-options.c +++ b/list-objects-filter-options.c @@ -84,7 +84,7 @@ static int gently_parse_list_objects_filter( } if (errbuf) - strbuf_addf(errbuf, "invalid filter-spec '%s'", arg); + strbuf_addf(errbuf, _("invalid filter-spec '%s'"), arg); memset(filter_options, 0, sizeof(*filter_options)); return 1;