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

CLDR Ticket #6837(closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Need contextTransforms data for English, "tense" data for others

Reported by: pedberg Owned by: pedberg
Component: main Data Locale: en
Phase: Review: mark
Weeks: Data Xpath:
Xref:

ticket:6857

Description (last modified by pedberg) (diff)

CLDR is lacking any contextTransforms data for English. We need this at least for formatting the relative fields (e.g. yesterday, today, tomorrow) - the "tense" item - when in a date format. There are some others we could consider adding:

calendar-field (field names)
  regex:    dates/fields/field[type=*]/displayName
  examples: Year, Month, Day
  (currently titlecased in data, but that could change)
tense (relative field names)
  regex:    dates/fields/field[type=*]/relative(Time)?
  examples: yesterday, today, last month, this month, in {0} months, {0} months ago
type (names for calendar, collation, number system types)
  regex:    localeDisplayNames/types/type[type=*]
  examples: Buddhist Calendar, Dictionary Sort Order, Arabic-Indic Digits
  (currently titlecased in data, but that could change)
unit-pattern (unit names)
  regex:    units/unitLength[type=*]/unit[type=*]/unitPattern[count=*]
  examples: {0} degree / {0} degrees, {0} day / {0} days
  (currently number is first, titlecase-firstword has no effect)

Proposed addition:

<contextTransforms>
    <contextTransformUsage type="calendar-field">
        <contextTransform type="stand-alone">titlecase-firstword</contextTransform>
        <contextTransform type="uiListOrMenu">titlecase-firstword</contextTransform>
    </contextTransformUsage>
    <contextTransformUsage type="tense">
        <contextTransform type="stand-alone">titlecase-firstword</contextTransform>
        <contextTransform type="uiListOrMenu">titlecase-firstword</contextTransform>
    </contextTransformUsage>
    <contextTransformUsage type="type">
        <contextTransform type="stand-alone">titlecase-firstword</contextTransform>
        <contextTransform type="uiListOrMenu">titlecase-firstword</contextTransform>
    </contextTransformUsage>
</contextTransforms>

Also we should add the "tense" item for other locales, including: cs, el, hr, id, nl, pl, pt, ru, tr, uk (these are ones for which Apple localizers preferred having the equivalent of "yesterday" and "today" capitalized when seeing a list of dates)

Attachments

Change History

comment:1 Changed 4 years ago by pedberg

  • Keywords Apple-15505500 added

comment:2 Changed 4 years ago by pedberg

  • Description modified (diff)
  • Summary changed from Need contextTransforms data for English to Need contextTransforms data for English, "tense" data for others

comment:3 Changed 4 years ago by pedberg

  • Cc mark added
  • Description modified (diff)

comment:4 Changed 4 years ago by mark

Possibly change the syntax?

<contextTransforms>

<contextTransformUsage type="calendar-field tense type">

<contextTransform type="stand-alone">titlecase-firstword</contextTransform>
<contextTransform type="uiListOrMenu">titlecase-firstword</contextTransform>

</contextTransformUsage>

</contextTransforms>

comment:5 Changed 4 years ago by pedberg

  • Keywords Apple15505500 added; Apple-15505500 removed
  • Owner changed from anybody to pedberg
  • Status changed from new to accepted
  • Milestone changed from UNSCH to 25M1

comment:6 Changed 4 years ago by pedberg

  • Priority changed from assess to major
  • Xref set to 6857
  • Type changed from defect to enhancement
  • Review set to mark

I split the syntax redesign out into a separate ticket, cldrbug 6857:

comment:7 Changed 4 years ago by mark

  • Status changed from accepted to closed
  • Resolution set to fixed

comment:8 Changed 4 years ago by emmons

  • Milestone 25M1 deleted

Milestone 25M1 deleted

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.