From: Jiang Xin Date: Tue, 24 Jul 2012 22:49:58 GMT Subject: Re: [PATCH v3 2/7] i18n: rebase: mark strings for translation Message-ID: In-Reply-To: <20120724180138.GF2939@burratino> 2012/7/25 Jonathan Nieder : >> @@ -64,7 +64,7 @@ test_expect_success 'rebase -n overrides config rebase.stat config' ' >> >> test_expect_success 'rebase --onto outputs the invalid ref' ' >> test_must_fail git rebase --onto invalid-ref HEAD HEAD 2>err && >> - grep "invalid-ref" err >> + test_i18ngrep "invalid-ref" err >> ' > > This is probably part of a message intended for humans, but the test > does not say. What is the full message being checked? > The error messages are: fatal: Needed a single revision Does not point to a valid commit: invalid-ref The first line has not been marked for translation (comes from builtin/rev-parse.c), but the second line is marked for translation in this patch. The output in my locale would be: fatal: Needed a single revision 没有指向一个有效的提交:invalid-ref -- Jiang Xin