JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.09k stars 492 forks source link

Localization - plural forms #1729

Open LilianaMoore opened 4 years ago

LilianaMoore commented 4 years ago

Please add 'one, few, many, other' plural forms for variables used in strings such as

Are you sure you want to remove {0} games?

JosefNemec commented 4 years ago

I'll be honest, I don't understand what would this be used for. We already have a different variation for a single game.

LilianaMoore commented 4 years ago

Many languages have two grammatical forms for singular and plural phrases e.g. "1 game" vs "2 games". However, some languages have several forms (e.g. Slavic family; Polish, Russian, Czech, etc) and the handling of plural forms differ widely between the language families. For example in Polish, we use "game" (gra) this way:

1 gra
2-4,22-24,32-34... gry
0, 5~19, 100, 1000... gier
0.0-1.5, 10.0, 100.0... gry

and so on. (It is worth noting that using strings like "game(s)" look unnatural and should be avoided.)

plurals

https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html http://cldr.unicode.org/index/cldr-spec/plural-rules https://www.soluling.com/Help/NET/Index.htm#Patterns