Template wizardry and its cost

Bastiaan Veelo Bastiaan at Veelo.net
Tue Jun 21 12:53:45 UTC 2022


On Tuesday, 21 June 2022 at 12:34:24 UTC, WebFreak001 wrote:
> On Tuesday, 21 June 2022 at 09:06:40 UTC, Bastiaan Veelo wrote:
>> [...]
>>
>> 0 geese.
>> one goose.
>> 2 geese.
>
> side note: plurals don't work this way in most other languages 
> :)

I am using the [GNU gettext 
format](https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html) for translation tables, which supports [formulae for the various language categories](https://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/Plural-forms.html).

We should be good in this department. Example:

Я считаю 1 яблоко.
Я считаю 3 яблока.
Я считаю 5 яблок.
Я считаю 7 яблок.

-- Bastiaan.


More information about the Digitalmars-d mailing list