get_short_sha1: mark ambiguity error for translation
authorJeff King <peff@peff.net>
Mon, 26 Sep 2016 12:00:14 +0000 (08:00 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Sep 2016 18:46:41 +0000 (11:46 -0700)
This is a human-readable message, and there's no reason it
should not be translated. While we're at it, let's drop the
period from the end, which is not our usual style.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c
index bbfa1a00adcea6c8ccb39230f6f06bea53e12c2b..acea241139d29f75bd2494e7bff3c2e6fb3976a2 100644 (file)
@@ -346,7 +346,7 @@ static int get_short_sha1(const char *name, int len, unsigned char *sha1,
        status = finish_object_disambiguation(&ds, sha1);
 
        if (!quietly && (status == SHORT_NAME_AMBIGUOUS))
-               return error("short SHA1 %s is ambiguous.", ds.hex_pfx);
+               return error(_("short SHA1 %s is ambiguous"), ds.hex_pfx);
        return status;
 }