Add wxUILocale::IsSupported()

This function can now be implemented relatively straightforwardly
(although it does require an extra check under Mac), so add it, as it
can be generally useful and we're also going to need it for our own
tests in the upcoming commit.
This commit is contained in:
Vadim Zeitlin
2021-08-30 21:02:00 +02:00
parent aa4cce8f7d
commit 32316af106
5 changed files with 38 additions and 2 deletions

View File

@@ -48,6 +48,10 @@ public:
// Create the object corresponding to the given locale.
explicit wxUILocale(const wxLocaleIdent& localeId);
// Check if the locale is actually supported by the current system: if it's
// not supported, the other functions will behave as for the "C" locale.
bool IsSupported() const;
// Get the platform-dependent name of the current locale.
wxString GetName() const;