tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug-1636984-display-name-fractional-seconds.diff (1559B)


      1 # Give fractional seconds a more useful display name than "F14".
      2 #
      3 # CLDR bug: https://unicode-org.atlassian.net/browse/CLDR-13623
      4 
      5 diff --git a/intl/icu/source/data/locales/root.txt b/intl/icu/source/data/locales/root.txt
      6 --- a/intl/icu/source/data/locales/root.txt
      7 +++ b/intl/icu/source/data/locales/root.txt
      8 @@ -3866,10 +3866,15 @@ root{
      9         zone{
     10             dn{"Zone"}
     11         }
     12         zone-narrow:alias{"/LOCALE/fields/zone-short"}
     13         zone-short:alias{"/LOCALE/fields/zone"}
     14 +        fractionalSecond{
     15 +            dn{"Fractional Second"}
     16 +        }
     17 +        fractionalSecond-narrow:alias{"/LOCALE/fields/fractionalSecond-short"}
     18 +        fractionalSecond-short:alias{"/LOCALE/fields/fractionalSecond"}
     19     }
     20     layout{
     21         characters{"left-to-right"}
     22         lines{"top-to-bottom"}
     23     }
     24 diff --git a/intl/icu/source/i18n/dtptngen.cpp b/intl/icu/source/i18n/dtptngen.cpp
     25 --- a/intl/icu/source/i18n/dtptngen.cpp
     26 +++ b/intl/icu/source/i18n/dtptngen.cpp
     27 @@ -266,11 +266,11 @@ static const char* const CLDR_FIELD_APPEND[] = {
     28 };
     29 
     30 static const char* const CLDR_FIELD_NAME[UDATPG_FIELD_COUNT] = {
     31     "era", "year", "quarter", "month", "week", "weekOfMonth", "weekday",
     32     "dayOfYear", "weekdayOfMonth", "day", "dayperiod", // The UDATPG_x_FIELD constants and these fields have a different order than in ICU4J
     33 -    "hour", "minute", "second", "*", "zone"
     34 +    "hour", "minute", "second", "fractionalSecond", "zone"
     35 };
     36 
     37 static const char* const CLDR_FIELD_WIDTH[] = { // [UDATPG_WIDTH_COUNT]
     38     "", "-short", "-narrow"
     39 };