Details
-
Suggestion
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
None
-
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.