Playnite icon indicating copy to clipboard operation
Playnite copied to clipboard

Localization - plural forms

Open LilianaMoore opened this issue 4 years ago • 2 comments

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

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

LilianaMoore avatar Apr 09 '20 14:04 LilianaMoore

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

JosefNemec avatar Apr 09 '20 15:04 JosefNemec

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

LilianaMoore avatar Apr 09 '20 19:04 LilianaMoore