[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #11061(accepted unknown)

Opened 6 months ago

Last modified 2 months ago

Clearly distinguish when CLDR has valid (default) plural rules

Reported by: mark Owned by: mark
Component: unknown Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

For locales that have default plural rules (cardinal or ordinal), that is just "other" for everything, we don't clearly distinguish when CLDR has valid-but-default rules (eg for Chinese), or that the rules are just unknown and get the root rules.

Some clients would like to know that:

http://bugs.icu-project.org/trac/ticket/12756

Attachments

Change History

comment:1 Changed 6 months ago by mark

I suggest doing it the following way, so that it would work well with the current tooling.

We introduce an alt='unknown' that we can add to the singleton rules (eg, with only 'other'). That is the following:

ordinals.xml
        <pluralRules locales="af am ar bg bs ce cs da de dsb el es et eu fa fi fy gl gsw he hr hsb id in is iw ja km kn ko ky lt lv ml mn my nb nl pa pl prg ps pt root ru sd sh si sk sl sr sw ta te th tr ur uz yue zh zu">
            <pluralRule count="other"> @integer 0~15, 100, 1000, 10000, 100000, 1000000, …</pluralRule>
        </pluralRules>

pluralRanges.xml
		<pluralRanges locales="id ja km ko lo ms my th vi yue zh">
			<pluralRange start="other" end="other" result="other"/>
		</pluralRanges>

plurals.xml
        <pluralRules locales="bm bo dz id ig ii in ja jbo jv jw kde kea km ko lkt lo ms my nqo root sah ses sg th to vi wo yo yue zh">
            <pluralRule count="other"> @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
        </pluralRules>

What would happen is that we'd copy each of these, add alt='unknown', remove the element contents, then move items in. The root locale would always be in alt='unknown'.

        <pluralRules locales="bm bo dz id ig ii in ja jbo jv jw kde kea km ko lkt lo ms my nqo sah ses sg th to vi wo yo yue zh">
            <pluralRule count="other"> @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
        </pluralRules>

        <pluralRules locales="root" alt='unknown'>
            <pluralRule count="other"> @integer 0~15, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
        </pluralRules>

When we add a new locale, the default action would be to move into alt='unknown' until we get verified plural rules.

comment:2 Changed 6 months ago by mark

  • Owner changed from anybody to mark
  • Phase changed from dsub to dvet
  • Priority changed from assess to major
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 34

comment:3 Changed 2 months ago by mark

  • Phase changed from dvet to dsub
  • Milestone changed from 34 to 35
View

Add a comment

Modify Ticket

Action
as accepted
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.