Audacity 3.2.0
|
Functions | |
wxString | GetSystemLanguageCode (const FilePaths &pathList) |
void | GetLanguages (FilePaths pathList, wxArrayString &langCodes, TranslatableStrings &langNames) |
wxString | SetLang (const FilePaths &pathList, const wxString &lang) |
wxString | GetLocaleName () |
wxString | GetLang () |
wxString | GetLangShort () |
Variables | |
static std::unique_ptr< wxLocale > | sLocale |
static wxString | sLocaleName |
STRINGS_API wxString Languages::GetLang | ( | ) |
Definition at line 395 of file Languages.cpp.
References sLocale.
Referenced by audacity::cloud::audiocom::ServiceConfig::GetAcceptLanguageValue().
STRINGS_API wxString Languages::GetLangShort | ( | ) |
Definition at line 403 of file Languages.cpp.
References sLocale.
STRINGS_API void Languages::GetLanguages | ( | FilePaths | pathList, |
wxArrayString & | langCodes, | ||
TranslatableStrings & | langNames | ||
) |
pathList | paths to search for .mo files, grouped into subdirectories for the different languages | |
[out] | langCodes | two-letter language abbreviations (like "fr") or language and country (like "pt_BR") |
[out] | langNames | corresponding autonyms of those languages (like "Português") |
Definition at line 140 of file Languages.cpp.
References details::end(), BasicUI::Get(), name, str, TranslationExists(), TranslationLess(), Verbatim(), wxT(), and XO().
Referenced by GetSystemLanguageCode(), LangChoiceDialog::LangChoiceDialog(), and GUIPrefs::Populate().
STRINGS_API wxString Languages::GetLocaleName | ( | ) |
Definition at line 390 of file Languages.cpp.
References sLocaleName.
Referenced by AudacityApp::InitPart2().
STRINGS_API wxString Languages::GetSystemLanguageCode | ( | const FilePaths & | pathList | ) |
pathList | paths to search for .mo files, grouped into subdirectories for the different languages |
Definition at line 83 of file Languages.cpp.
References GetLanguages(), and wxT().
Referenced by LangChoiceDialog::LangChoiceDialog(), LangChoiceDialog::OnOk(), anonymous_namespace{AudacityApp.cpp}::PopulatePreferences(), NyquistBase::Process(), and SetLang().
STRINGS_API wxString Languages::SetLang | ( | const FilePaths & | audacityPathList, |
const wxString & | lang | ||
) |
audacityPathList | paths to search for .mo files, grouped into subdirectories for the different languages |
lang | a language code; or if empty or "System", then default to system language. |
Definition at line 324 of file Languages.cpp.
References GetSystemLanguageCode(), Internat::Init(), sLocale, sLocaleName, and wxT().
Referenced by GUISettings::SetLang().
|
static |
Definition at line 321 of file Languages.cpp.
Referenced by GetLang(), GetLangShort(), and SetLang().
|
static |
Definition at line 322 of file Languages.cpp.
Referenced by GetLocaleName(), and SetLang().