From 38a0a72b71f8a26b9045e2fd2bb55a0d81a03a82 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 4 Mar 2023 23:37:05 +0100 Subject: [PATCH] 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. --- tests/intl/intltest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index 0391a90b1b..bcbdbcbede 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -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