Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Obligatory oldnewthing: https://devblogs.microsoft.com/oldnewthing/20030929-02/?p=42...

> Multilingual support also explains why you see things like “1 folder(s)” instead of “1 folder” and “2 folders”. Why not have two format strings, one for when the number of items is exactly one, and one for when the number of items is two or more?

> Well, for one, that would significantly increase the number of strings we would have to carry around. (If you say “just add s to make the plural” then you really need to get out more!)

> For two, some languages (such as Slovene) have a “dual” number in addition to singular and plural. The Lahir language has singular (one), dual (two), trial (three), paucal (a few), and plural (many). So now you have to have perhaps five versions of every string that contains a replaceable number.



I suppose Raymond chen has shared enough insights for us to build a whole wiki out of it :-)

A couple of other related ones:

https://devblogs.microsoft.com/oldnewthing/20241007-00/?p=11...

https://devblogs.microsoft.com/oldnewthing/20241101-00/?p=11...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: