Audacity 3.2.0
GUISettings.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file GUISettings.cpp
6
7Paul Licameli split from GUIPrefs.cpp
8
9**********************************************************************/
10
11#include "GUISettings.h"
12
13#include "FileNames.h"
14#include "Languages.h"
15#include "AudacityMessageBox.h"
16
17#include <wx/app.h>
18
19wxString GUISettings::SetLang( const wxString & lang )
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}
39
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,...
AUDACITY_DLL_API wxString SetLang(const wxString &lang)
Definition: GUISettings.cpp:19
wxString SetLang(const FilePaths &pathList, const wxString &lang)
Definition: Languages.cpp:324