June 21, 2022

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 :)

Mozilla had a custom pluralization thing in their translation framework once which I ported: https://github.com/Pure-D/serve-d/blob/c93530e5b235378a6c465205fd6dade0521a2804/source/served/utils/translate.d#L248

now it seems they moved away from that though and use the Unicode CLDR Project.

June 21, 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 for translation tables, which supports formulae for the various language categories.

We should be good in this department. Example:

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

-- Bastiaan.

1 2
Next ›   Last »