Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94460

QLocale's names for languages, scripts and territories don't match CLDR's en.xml's proper names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF, 6.x
    • 6.0, 6.1, 5.15, 6.2
    • Core: Locales (i18n)
    • None
    • All
    • 8
    • 1ae24f8b5 (dev), afd7d6824 (dev), 743ceb7cc (dev), e212b3633 (dev), d105c67a7 (dev), a61e3d798 (6.6), 5f974909b (tqtc/lts-6.5)
    • Foundation Sprint 88

    Description

      At present, qlocale_data_p.h's *_name_list[] arrays for (English, at least nominally) names of languages, scripts and territories use ASCII-compatible names derived from enumdata.py, matching the members of QLocale's Language, Script and Territory enums. The latter, of course, have to have ASCII-compatible names; but the names in the arrays are the ones returned by languageToString() and related QString-returning methods that can cope with more than just ASCII. Since some of the languages, scripts and territories have names, in CLDR's en.xml – so nominally English, although sometimes with accented letters not normally used in English, e.g. "Norwegian Bokmål" for nb_NO or "Côte d’Ivoire" for CI – that don't always coincide with the ASCII-compatible names we use for the enums (in the given examples, NorwegianBokmal and IvoryCoast). In some cases (e.g. Ivory Coast) the name we use for the enum is a recognised variant, listed by CLDR alongside the definitive form, but it would be more consistent with CLDR to use the definitive form.

      This arises because we need ASCII names for the enums, but it's only a matter of changing the scripts that generate the data to get the en.xml names into the *_name_list[] arrays instead. Some reworking of the util/locale_database/ scripts shall, of course, be needed.
      At present, those scripts do report on major discrepancies between the ASCII-compatible names and the en.xml ones; the fix would be to have it propagate those en.xml names through the QLocale XML data-file from CLDR through to the data-generation step.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Eddy Edward Welbourne
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: