From: Phillip Wood Date: Sat, 14 Mar 2026 20:08:15 GMT Subject: Re: [PATCH] remote: use plural-only message for diverged branch status Message-ID: In-Reply-To: On 14/03/2026 18:38, Junio C Hamano wrote: > > remote: don't use Q_() when it is not needed > > In this code path, both ours and theirs are already known to be > positive integers, so ours + theirs will always be plural, never > using the first variant given to Q_(). > > Just use _() with the plural string only. There can be more than one form of the plural string though. The gettext manual has the following example of the Polish translation of "file" for different numbers of files [1] 1 plik 2,3,4 pliki 5-21 plików 22-24 pliki 25-31 plików ngettext() handles that correctly, translating a single string without an associated count will not. Thanks Phillip [1] https://www.gnu.org/software/gettext/manual/gettext.html#Additional-functions-for-plural-forms