From 0e544960b049cae87d77404a3df0c50bf6742e43 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 May 2022 16:34:45 +0200 Subject: [PATCH] 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. --- interface/wx/uilocale.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/wx/uilocale.h b/interface/wx/uilocale.h index eb6f80e090..d7fb7d34ab 100644 --- a/interface/wx/uilocale.h +++ b/interface/wx/uilocale.h @@ -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