Re: Use singular number when appropriate - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Use singular number when appropriate
Date
Msg-id ea5e6698-9fd1-dc15-e8e7-671fc5cfea35@iki.fi
Whole thread Raw
In response to Use singular number when appropriate  (David Fetter <david@fetter.org>)
List pgsql-hackers
On 15/06/2021 07:59, David Fetter wrote:
> Hi,
> 
> I thought about using the dual, but wasn't sure how many languages
> support it.
>
>     if (fail_count == 0 && fail_ignore_count == 0)
>          snprintf(buf, sizeof(buf),
>                  _(" %s %d test%s passed. "),
>                  success_count == 1 ? "The" : "All",
>                  success_count,
>                  success_count == 1 ? "" : "s");

Constructing sentences like that is bad practice for translations. See 
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html.

- Heikki



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Different compression methods for FPI
Next
From: Michael Paquier
Date:
Subject: Re: Error on pgbench logs