From fd29d33489086c074f87b2c869c3af4c43e236d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 Sep 2023 20:05:29 +0200 Subject: [PATCH] Use "@overload" instead of duplicating GetBestTranslation() docs No real changes, but avoid duplicating ~20 lines of documentation unnecessarily. --- interface/wx/translation.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/interface/wx/translation.h b/interface/wx/translation.h index f03eaf82dd..0268f3a4a8 100644 --- a/interface/wx/translation.h +++ b/interface/wx/translation.h @@ -113,25 +113,7 @@ public: wxString GetBestTranslation(const wxString& domain, wxLanguage msgIdLanguage); /** - Returns the best UI language for the @a domain. - - The language is determined from the preferred UI language or languages - list the user configured in the OS. Notice that this may or may not - correspond to the default @em locale as obtained from - wxLocale::GetSystemLanguage() as operating systems have separate - language and regional (i.e. locale) settings. - - @param domain - The catalog domain to look for. - - @param msgIdLanguage - Specifies the language of "msgid" strings in source code - (i.e. arguments to GetString(), wxGetTranslation() and the _() macro). - - @return Language code if a suitable match was found, empty string - otherwise. - - @since 2.9.5 + @overload */ wxString GetBestTranslation(const wxString& domain, const wxString& msgIdLanguage = "en");