3 ms·
Obligatory oldnewthing: https://devblogs.microsoft.com/oldnewthing/20030929-02/?p=42363 https://devblogs.microsoft.com/oldnewthing/20030929-02/?p=42... > Multi
by mdriley 11mo ago
Obligatory oldnewthing: https://devblogs.microsoft.com/oldnewthing/20030929-02/?p=42363 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.
- sivaraam 11mo agoI 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=110345 https://devblogs.microsoft.com/oldnewthing/20241007-00/?p=11... https://devblogs.microsoft.com/oldnewthing/20241101-00/?p=110447 https://devblogs.microsoft.com/oldnewthing/20241101-00/?p=11...