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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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