Template wizardry and its cost

WebFreak001 d.forum at webfreak.org
Tue Jun 21 12:34:24 UTC 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.


More information about the Digitalmars-d mailing list