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

CLDR Ticket #8056(closed: fixed)

Opened 4 years ago

Last modified 4 years ago

units conversion to ICU is messed up

Reported by: pedberg Owned by: emmons
Component: ldml2icu Data Locale:
Phase: dvet Review: pedberg
Weeks: Data Xpath:
Xref:

ticket:8046

Description (last modified by pedberg) (diff)

  1. common/main/root.xml has aliases from <unitLength type="long"> and <unitLength type="narrow"> to <unitLength type="short">; however:
  • The alias from <unitLength type="narrow"> does not get converted to ICU at all
  • The alias from <unitLength type="long"> is converted into the wrong place; instead of being put in data/unit/root.txt like the units data for other locales, it is placed in data/locales/root.txt as
        units:alias{"/LOCALE/unitsShort"}
    
  1. <units> also includes <durationUnit> elements. But the corresponding data is not being put in the data/unit/xx.txt files, it is being put in the data/locales/xx.txt files.

For reference, here is the relevant data in common/main/root.xml:

<units>
    <unitLength type="long">
        <alias source="locale" path="../unitLength[@type='short']"/>
    </unitLength>
    <unitLength type="short">
        ...data
    </unitLength>
    <unitLength type="narrow">
        <alias source="locale" path="../unitLength[@type='short']"/>
    </unitLength>
    <durationUnit type="hm">
        <durationUnitPattern>h:mm</durationUnitPattern> <!-- 33:59 -->
    </durationUnit>
    <durationUnit type="hms">
        <durationUnitPattern>h:mm:ss</durationUnitPattern> <!-- 33:04:59 -->
    </durationUnit>
    <durationUnit type="ms">
        <durationUnitPattern>m:ss</durationUnitPattern> <!-- 33:59 -->
    </durationUnit>

What we get in ICU is

data/unit/root.txt
    unitsShort{
        ...data
    }

data/locales/root.txt
    durationUnits{
        hm{"h:mm"}
        hms{"h:mm:ss"}
        ms{"m:ss"}
    }
    ...
    units:alias{"/LOCALE/unitsShort"}

Attachments

Change History

comment:1 Changed 4 years ago by pedberg

  • Description modified (diff)

comment:2 Changed 4 years ago by emmons

  • Owner changed from anybody to emmons
  • Phase changed from dsub to dvet
  • Priority changed from assess to major
  • Status changed from new to assigned
  • Milestone changed from UNSCH to 27

comment:3 Changed 4 years ago by srl

  • Xref set to 8046

comment:4 Changed 4 years ago by emmons

Issue #2 handled in Icubug:11408

comment:5 Changed 4 years ago by emmons

  • Status changed from assigned to reviewing
  • Review set to pedberg

comment:6 Changed 4 years ago by pedberg

  • Status changed from reviewing to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Action
as closed
Next status will be 'new'
Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.