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"
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
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
#define XO(s)
Definition: Internat.h:31
#define _(s)
Definition: Internat.h:75
FileConfig * gPrefs
Definition: Prefs.cpp:71
Abstract base class used in importing a file.
static void SetCeeNumberFormat()
Definition: Internat.cpp:122
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