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

Do byte-amount formatting less wrongly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0, 5.15
    • Core: Locales (i18n)
    • None

    Description

      QLocale::formattedDataSize() naively assumes that we can just use number + space + unit as the format string. This is, of course, not true in all locales - some put the number after the unit, most obviously. CLDR has the right formatting strings to tell us how to do this, but we're throwing that information away when we extract unit names from CLDR. We should, instead, do proper number formatting, just as we do for currencies and other formatted texts.

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes