[Remind-Fans] Plural() should compare to 0 as well

Dianne Skoll dianne at skoll.ca
Wed Jun 21 09:15:20 EDT 2023


On Wed, 21 Jun 2023 11:23:28 +0200 (CEST)
l0f4r0--- via Remind-fans <remind-fans at lists.skoll.ca> wrote:

> It would be nice however to allow customization for languages that
> don't follow this rule (french for example). Maybe a new system
> variable like $Zeroplu documented in "RUN-TIME SUPPORT FOR OTHER
> LANGUAGES"? What do you think about it Dianne?

plural() is already language-specific, so I don't think generalizing
it is worthwhile.  Instead, use something like:

   plural(iif(x==0, 1, x), ...)

You could wrap this in a my_plural function if you like.

Regards,

Dianne.


More information about the Remind-fans mailing list