Provide name-based wxUILocale implementation for post-XP MSW

Use the recommended name-based NLS API rather than legacy functions
taking LCID.

Preserve compatibility with Windows XP by keeping the old code for now,
but it will be removed after 3.2.0.
This commit is contained in:
Vadim Zeitlin
2021-08-29 18:58:30 +01:00
parent 608718dd9c
commit 07e79b7736
3 changed files with 174 additions and 15 deletions

View File

@@ -22,7 +22,10 @@
// Use the specific LCID for the current thread.
void wxUseLCID(LCID lcid);
// This function is defined in src/common/intl.cpp
// These functions are defined in src/common/intl.cpp
wxString wxGetInfoFromLCID(LCID lcid, wxLocaleInfo index, wxLocaleCategory cat);
LCTYPE wxGetLCTYPEFormatFromLocalInfo(wxLocaleInfo index);
WXDLLIMPEXP_BASE wxString wxTranslateFromUnicodeFormat(const wxString& fmt);
#endif // _WX_MSW_PRIVATE_UILOCALE_H_