Audacity 3.2.0
Functions
GUISettings Namespace Reference

Functions

AUDACITY_DLL_API wxString SetLang (const wxString &lang)
 

Function Documentation

◆ SetLang()

wxString GUISettings::SetLang ( const wxString &  lang)

Definition at line 19 of file GUISettings.cpp.

20{
22 if (!(lang.empty() || lang == L"System") && result != lang)
24 XO("Language \"%s\" is unknown").Format( lang ) );
25
26#ifdef EXPERIMENTAL_CEE_NUMBERS_OPTION
27 bool forceCeeNumbers;
28 gPrefs->Read(wxT("/Locale/CeeNumberFormat"), &forceCeeNumbers, false);
29 if( forceCeeNumbers )
31#endif
32
33#ifdef __WXMAC__
34 wxApp::s_macHelpMenuTitleName = _("&Help");
35#endif
36
37 return result;
38}
wxT("CloseDown"))
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
XO("Cut/Copy/Paste")
#define _(s)
Definition: Internat.h:73
audacity::BasicSettings * gPrefs
Definition: Prefs.cpp:68
Abstract base class used in importing a file.
static void SetCeeNumberFormat()
Definition: Internat.cpp:97
virtual bool Read(const wxString &key, bool *value) const =0
FILES_API const FilePaths & AudacityPathList()
A list of directories that should be searched for Audacity files (plug-ins, help files,...
wxString SetLang(const FilePaths &pathList, const wxString &lang)
Definition: Languages.cpp:324

References _, AudacityMessageBox(), FileNames::AudacityPathList(), gPrefs, audacity::BasicSettings::Read(), Internat::SetCeeNumberFormat(), Languages::SetLang(), wxT(), and XO().

Referenced by GUIPrefs::Commit(), and anonymous_namespace{AudacityApp.cpp}::PopulatePreferences().

Here is the call graph for this function:
Here is the caller graph for this function: