[PATCH 11/11] test-tool i18n: do not complain about empty messages
- From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jan 12, 2021, 08:47 UTC
- Message-ID
- <e1e9d5c27377cad3009e325bc353271aac31c770.1610441263.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.836.git.1610441262.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
They might, or might not be 'translated'. Let's not assume that they aren't marked with `_()` for translation.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- t/helper/test-i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/helper/test-i18n.c b/t/helper/test-i18n.c index 8a16df6b40f..82efc66f1f5 100644 --- a/t/helper/test-i18n.c +++ b/t/helper/test-i18n.c @@ -52,7 +52,7 @@ static void unrot13_strbuf(struct strbuf *buf) { size_t len = unrot13(buf->buf); - if (len == buf->len) + if (len && len == buf->len) die("not ROT13'ed:\n%s", buf->buf); buf->len = len; }
-- gitgitgadget