Last modified: 2013-12-07 22:20:52 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 T59903, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57903 - Add support for ordinal numbers
Add support for ordinal numbers
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CLDR (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-03 00:45 UTC by Ryan Kaldari
Modified: 2013-12-07 22:20 UTC (History)
5 users (show)

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


Attachments

Description Ryan Kaldari 2013-12-03 00:45:14 UTC
Right now, MediaWiki has no way to localize '1st', '2nd', '3rd', etc. The CLDR database includes rules for creating ordinal numbers but these rules are not currently extracted or utilized by the cldr extension.

The rules are ruleset type="digits-ordinal-indicator" in core/common/rbnf. Here is a sample for English:

<ruleset type="digits-ordinal-indicator" access="private">
    <rbnfrule value="0">th;</rbnfrule>
    <rbnfrule value="1">st;</rbnfrule>
    <rbnfrule value="2">nd;</rbnfrule>
    <rbnfrule value="3">rd;</rbnfrule>
    <rbnfrule value="4">th;</rbnfrule>
    <rbnfrule value="20">→→;</rbnfrule>
    <rbnfrule value="100">→→;</rbnfrule>
</ruleset>
Comment 1 Ryan Kaldari 2013-12-03 01:06:19 UTC
This is being requested for the KeepGoing feature in MobileFrontend (https://www.mediawiki.org/wiki/Extension:MobileFrontend/KeepGoing). We're probably just going to change the requirements for now.

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


Navigation
Links