Replace references to wxLocale by wxUILocale

Use newer wxUILocale class directly instead of using wxLocale functions
that forward to it anyhow.

No real changes.

Closes #22375.
This commit is contained in:
utelle
2022-04-29 09:19:58 +02:00
committed by Vadim Zeitlin
parent a7791781d9
commit 1c65e88221
10 changed files with 37 additions and 35 deletions

View File

@@ -31,6 +31,8 @@
#include "wx/odcombo.h"
#include "wx/uilocale.h"
// Drawing ARGB on standard DC is supported by OSX and GTK3
#if defined(__WXOSX__) || defined(__WXGTK3__)
#define wxPG_DC_SUPPORTS_ALPHA 1
@@ -2226,7 +2228,7 @@ wxString wxDateProperty::DetermineDefaultDateFormat( bool showCentury )
{
// This code is based on datectlg.cpp's GetLocaleDateFormat()
#if wxUSE_INTL
wxString format = wxLocale::GetOSInfo(wxLOCALE_SHORT_DATE_FMT);
wxString format = wxUILocale::GetCurrent().GetInfo(wxLOCALE_SHORT_DATE_FMT);
if ( showCentury )
format.Replace(wxS("%y"), wxS("%Y"));
else