21#include <wx/stattext.h>
37 void OnOk(wxCommandEvent & event);
56 dlog.CentreOnParent();
80 S.StartVerticalLay(
false);
82 S.StartHorizontalLay();
85 mChoice =
S.AddChoice(
XXO(
"Choose Language for Audacity to use:"),
101 int ndx =
mChoice->GetSelection();
109 if (sndx == wxNOT_FOUND) {
110 const wxLanguageInfo *sinfo = wxLocale::FindLanguageInfo(slang);
112 sname = sinfo->Description;
119 if (
mLang.Left(2) != slang.Left(2)) {
122 auto msg =
XO(
"The language you have chosen, %s (%s), is not the same as the system language, %s (%s).")
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
XXO("&Cut/Copy/Paste Toolbar")
IteratorRange< Iterator > make_iterator_range(const Iterator &i1, const Iterator &i2)
wxString ChooseLanguage(wxWindow *parent)
std::vector< TranslatableString > TranslatableStrings
A dialog used (at start up) to present the user with a choice of languages for Audacity.
TranslatableStrings mLangNames
LangChoiceDialog(wxWindow *parent, wxWindowID id, const TranslatableString &title)
void OnOk(wxCommandEvent &event)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
FILES_API const FilePaths & AudacityPathList()
A list of directories that should be searched for Audacity files (plug-ins, help files,...
wxString GetSystemLanguageCode(const FilePaths &pathList)
void GetLanguages(FilePaths pathList, wxArrayString &langCodes, TranslatableStrings &langNames)