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

CLDR Ticket #10291(accepted)

Opened 18 months ago

Last modified 3 months ago

Compact numbers w/ CLDR plural rules

Reported by: mark Owned by: mark
Component: survey-frontend Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:
Xref:

Description

The compact numbers need to be built with the CLDR plural rules, which may be different than ICU's. So we need a method to call like the commented out like below:

        CompactDecimalFormat cdf = CompactDecimalFormat.getInstance(locale, style);
        ICUServiceBuilder builder = new ICUServiceBuilder().setCldrFile(resolvedCldrFile);

        cdf.setDecimalFormatSymbols(builder.getDecimalFormatSymbols("latn"));
        cdf.setProperties(new PropertySetter() {
            @Override
            public void set(Properties props) {
                props.setCompactCustomData(customData);
                //props.setPluralRules(pluralInfo.getPluralRules());
            }
        });

Attachments

Change History

comment:1 Changed 18 months ago by pedberg

  • Status changed from new to accepted
  • Component changed from unknown to numbers
  • Priority changed from assess to critical
  • Milestone changed from UNSCH to 32
  • Owner changed from anybody to mark
  • type changed from unknown to survey

comment:2 Changed 16 months ago by mark

  • Component changed from numbers to plurals

comment:3 Changed 15 months ago by mark

  • Milestone changed from 32 to 33

comment:4 Changed 12 months ago by kristi

  • Milestone changed from 33 to 34

comment:5 Changed 3 months ago by mark

  • Milestone changed from 34 to 35

comment:6 Changed 3 weeks ago by mark

  • Component changed from plurals to survey-frontend
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.