From kde-i18n-doc Tue Apr 03 17:34:45 2001 From: Lukas Tinkl Date: Tue, 03 Apr 2001 17:34:45 +0000 To: kde-i18n-doc Subject: Re: plural handling X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=98631916819788 Dne po 2. duben 2001 22:09 Roman Maurer napsal(a): > Stephan Kulow wrote: > > Four forms, special case for one and all numbers ending in 2, 3, or 4 > > The header entry would look like this: > > > > Plural-Forms: nplurals=3D4; \ > > plural=3Dn=3D=3D1 ? 0 : \ > > n%10=3D=3D2 ? 1 : n%10=3D=3D3 || n%10=3D= =3D4 ? 2 : 3; > > > > Languages with this property include: > > > > Slavic family > > Slovenian > > I'm afraid that's not quite it for Slovenian. Our language > computes singular, dual or plural forms regarding to "mod 100", > not "mod 10": > > The same expression is for (BTW, "datoteka" means "file"): > > n%100=3D=3D1: > =091 datoteka, 101 datoteka, 201 datoteka, ... > > n%100=3D=3D2: > =092 datoteki, 102 datoteki, 202 datoteki, ... > > n%100=3D=3D3 or n%100=3D=3D4: > =093 datoteke, 4 datoteke, 103 datoteke, 1003 datoteke, ... > > otherwise: > =090 datotek, 5 datotek, 6 datotek, 10 datotek, > =0911 datotek, 99 datotek, 100 datotek, > =09105 datotek, 1005 datotek, etc. I must admit it took me quite some time to think about all the cases my=20 "wonderful" language offers... Well, to make things even more complicated= ,=20 the Czech language supports *both* cases stated above, both being correct= and=20 used. A short example of what I mean: 1: jeden soubor (1 file) 2, 3, 4: dva, t=F8i, =E8ty=F8i soubory (2..4 files) 5+ : p=ECt soubor=F9 (5 files) Now to something more interesting: 11: jeden=E1ct soubor=F9 21: dvacet jedna soubor=F9, dvacet jeden soubor, jedenadvacet soubor=F9=20 (*all* of these three meaning 21 files) and the same for all ((n%10)+1). The trick here is that we say: - "twenty one of files" - "twenty one file" - "one and twenty of files" So, what do we do now? ;-) --=20 Lukas Tinkl | lukas@kde.org | lukas.tinkl@suse.cz KDE i18n maintainer