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

Support ordinal number localization

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • None
    • Core: Locales (i18n)
    • None

    Description

      Reading http://wiki.qt.io/Locale_Support_in_Qt_5#Number_Localization and http://wiki.qt.io/Locale_Support_in_Qt_5#Number_Localization confirms that producing an ordinal number, either spelt out or a number with a prefix/suffix, is not possible in Qt5.

      It would be great if it was possible to either create a ordinal number via something like (with English as the current locale):

      Qt.locale().ordinalNumber(5) // 5th

      and/or produce ordinal numbers in dates:

      new Date().toLocaleDateString(Qt.locale(), "d_ordinal MMMM")

      where d_ordinal produces e.g. 24th.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jgdxcc Jonas Grønås Drange
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes