Show date format in locale pseudo-test too

In addition to the decimal separator, show the date format for the
current locale too in wxUILocale::ShowSystem pseudo-test to check that
this works as expected.
This commit is contained in:
Vadim Zeitlin 2023-03-04 23:37:05 +01:00
parent 00b2d27224
commit 38a0a72b71

View file

@ -468,10 +468,12 @@ wxString GetLocaleDesc(const char* when)
else
decsep = wxString::Format("UNKNOWN (%s)", decsep);
return wxString::Format("%s\ncurrent locale:\t%s (decimal separator: %s)",
return wxString::Format("%s\ncurrent locale:\t%s "
"(decimal separator: %s, date format=%s)",
when,
locid.IsEmpty() ? wxString("NONE") : locid.GetTag(),
decsep);
decsep,
curloc.GetInfo(wxLOCALE_SHORT_DATE_FMT));
}
} // anonymous namespace