Fix example of creating wxUILocale in its documentation

There are several ways to do it, and it's not clear which one of them
should be illustrated here, but it should definitely be one that works.

Closes #22389.
This commit is contained in:
Vadim Zeitlin
2022-05-07 16:34:45 +02:00
parent 68dee47694
commit 0e544960b0

View File

@@ -116,9 +116,10 @@ public:
In the simplest case, this can be used as following:
@code
const wxUILocale loc(wxLocaleIdent("fr"));
const wxUILocale loc(wxLocaleIdent().Language("fr"));
@endcode
see wxLocaleIdent description for more details.
see wxLocaleIdent description for more details, including other ways of
specifying the locale.
If @a localeId is not recognized or not supported, default ("C") locale
is used instead. Additionally, if @a localeId is empty (see