Make wxLanguageInfo::GetLocaleName() consistent across platforms

Check that the locale can be indeed set to the given string in Unix
version too, there doesn't seem to be any good reason to do it for MSW
only.
This commit is contained in:
Vadim Zeitlin
2017-07-14 18:20:16 +02:00
parent 2e2682116f
commit 7836dfbc77
3 changed files with 17 additions and 11 deletions

View File

@@ -55,8 +55,13 @@ struct wxLanguageInfo
/// @onlyfor{wxmsw}
wxUint32 GetLCID() const;
/// Return the locale name corresponding to this language usable with
/// @c setlocale() on the current system.
/**
Return the locale name corresponding to this language usable with
@c setlocale() on the current system.
If setting locale for this language is not supported, the returned
string is empty.
*/
wxString GetLocaleName() const;
};