Last modified: 2007-11-30 14:07:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T13796, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11796 - Add third variant to Polish {{PLURAL}} like in Czech
Add third variant to Polish {{PLURAL}} like in Czech
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal enhancement with 7 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-28 11:11 UTC by Piotr Kubowicz
Modified: 2007-11-30 14:07 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
convertPlural() for Polish (pl) (747 bytes, patch)
2007-11-29 20:30 UTC, Naive cynic
Details
convertPlural() for Polish (pl) (692 bytes, patch)
2007-11-29 22:29 UTC, Naive cynic
Details
convertPlural() for Polish (pl) (746 bytes, patch)
2007-11-29 22:30 UTC, Naive cynic
Details

Description Piotr Kubowicz 2007-10-28 11:11:53 UTC
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
Comment 1 Naive cynic 2007-11-29 20:30:55 UTC
Created attachment 4393 [details]
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...
Comment 2 Naive cynic 2007-11-29 22:29:20 UTC
Created attachment 4395 [details]
convertPlural() for Polish (pl)
Comment 3 Naive cynic 2007-11-29 22:30:46 UTC
Created attachment 4396 [details]
convertPlural() for Polish (pl)
Comment 4 Niklas Laxström 2007-11-30 14:07:20 UTC
r27967

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links