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

CLDR Ticket #10291(accepted survey)

Opened 2 months ago

Last modified 2 months ago

Compact numbers w/ CLDR plural rules

Reported by: mark Owned by: mark
Component: numbers 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 2 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
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.