-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.8.2
-
None
-
Windows 7 (Bulgarian system locale), MinGW
It appears that QDate::shortDayName(), QDate::longDayName(), QDate::shortMonthName() and QDate::longMonthName() ignore the locale set with QLocale::setDefault() and use the system locale instead. Is this the expected behaviour?
Example code:
// Both of these are set to the same localized string
ui->label->setText(QDate::longDayName(1));
QLocale::setDefault(QLocale::English);
ui->label_2->setText(QDate::longDayName(1));