Page MenuHomePhabricator

Add third variant to Polish {{PLURAL}} like in Czech
Closed, ResolvedPublic

Description

With Czech language you can give three variants to {{PLURAL}} template:

{{plural:$1|kategorie|kategorie|kategorií}}

The same should be in Polish (currently there are only two forms).

KDE handles these three forms with such expression:
n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2


Version: unspecified
Severity: enhancement

Details

Reference
bz11796

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:55 PM
bzimport set Reference to bz11796.
bzimport added a subscriber: Unknown Object (MLST).

cynic wrote:

convertPlural() for Polish (pl)

Added a patch against trunk/phase3.

I submitted the code to Stv in 2006, but it seems to have never been committed. Oh well...

attachment convert-plural-pl.patch ignored as obsolete

cynic wrote:

convertPlural() for Polish (pl)

attachment convert-plural-pl.patch ignored as obsolete

cynic wrote:

convertPlural() for Polish (pl)

Attached: