[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: plural handling
From:       Roman Maurer <roman.maurer () amis ! net>
Date:       2001-04-02 20:09:21
[Download RAW message or body]

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=4; \
>                         plural=n==1 ? 0 : \
>                                n%10==2 ? 1 : n%10==3 || n%10==4 ? 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==1:
	1 datoteka, 101 datoteka, 201 datoteka, ...

n%100==2:
	2 datoteki, 102 datoteki, 202 datoteki, ...

n%100==3 or n%100==4:
	3 datoteke, 4 datoteke, 103 datoteke, 1003 datoteke, ...

otherwise:
	0 datotek, 5 datotek, 6 datotek, 10 datotek,
	11 datotek, 99 datotek, 100 datotek,
	105 datotek, 1005 datotek, etc.

-- 
	Regards,
	  Roman

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic