Re: Use singular number when appropriate

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: David Fetter <david(at)fetter(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use singular number when appropriate
Date: 2021-06-15 07:37:11
Message-ID: 78411ebb5ccff8da93ea5bad0bb897adf40f292e.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 2021-06-15 at 04:59 +0000, David Fetter wrote:
> I thought about using the dual, but wasn't sure how many languages
> support it.

I think none of the languages for which we cater uses the dual.
But I guess you were joking, since the tests are not translated ...

> if (fail_count == 0 && fail_ignore_count == 0)
> snprintf(buf, sizeof(buf),
> - _(" All %d tests passed. "),
> - success_count);
> + _(" %s %d test%s passed. "),
> + success_count == 1 ? "The" : "All",
> + success_count,
> + success_count == 1 ? "" : "s");

... and that wouldn't be translatable.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2021-06-15 08:05:29 Re: Error on pgbench logs
Previous Message Ajin Cherian 2021-06-15 07:34:21 Re: Decoding of two-phase xacts missing from CREATE_REPLICATION_SLOT command