From 2afddd5e2266a5cac99612ca8e919d2b42739c37 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 21 May 2015 10:45:48 +0200 Subject: [PATCH] Fix some typos in the samples. Mostly in the comments, but also a couple in the user-visible strings. --- samples/propgrid/tests.cpp | 2 +- samples/stc/edit.cpp | 8 ++++---- samples/stc/stctest.cpp | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/samples/propgrid/tests.cpp b/samples/propgrid/tests.cpp index e95049ea07..4926e2f4e5 100644 --- a/samples/propgrid/tests.cpp +++ b/samples/propgrid/tests.cpp @@ -146,7 +146,7 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) ) { wxVariant& a = v[n]; - t.Printf(wxT(" atribute %i: name=\"%s\" (type=\"%s\" value=\"%s\")\n"),(int)n, + t.Printf(wxT(" attribute %i: name=\"%s\" (type=\"%s\" value=\"%s\")\n"),(int)n, a.GetName().c_str(),a.GetType().c_str(),a.GetString().c_str()); text += t; } diff --git a/samples/stc/edit.cpp b/samples/stc/edit.cpp index 83c24e14d0..d4b8d55a09 100644 --- a/samples/stc/edit.cpp +++ b/samples/stc/edit.cpp @@ -622,7 +622,7 @@ bool Edit::InitializePrefs (const wxString &name) { SetFoldFlags (wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED | wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED); - // set spaces and indention + // set spaces and indentation SetTabWidth (4); SetUseTabs (false); SetTabIndents (true); @@ -647,7 +647,7 @@ bool Edit::InitializePrefs (const wxString &name) { bool Edit::LoadFile () { #if wxUSE_FILEDLG - // get filname + // get filename if (!m_filename) { wxFileDialog dlg (this, wxT("Open file"), wxEmptyString, wxEmptyString, wxT("Any file (*)|*"), wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR); @@ -684,7 +684,7 @@ bool Edit::SaveFile () // return if no change if (!Modified()) return true; - // get filname + // get filename if (!m_filename) { wxFileDialog dlg (this, wxT("Save file"), wxEmptyString, wxEmptyString, wxT("Any file (*)|*"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT); @@ -741,7 +741,7 @@ EditProperties::EditProperties (Edit *edit, SetTitle (_("Properties")); wxString text; - // fullname + // full name wxBoxSizer *fullname = new wxBoxSizer (wxHORIZONTAL); fullname->Add (10, 0); fullname->Add (new wxStaticText (this, wxID_ANY, _("Full filename"), diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index e269f98a7b..8b70430481 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -91,7 +91,7 @@ class App: public wxApp { friend class AppFrame; public: - //! the main function called durning application start + //! the main function called during application start virtual bool OnInit (); //! application exit function @@ -485,7 +485,7 @@ void AppFrame::CreateMenu () menuEdit->Append (wxID_SELECTALL, _("&Select all\tCtrl+A")); menuEdit->Append (myID_SELECTLINE, _("Select &line\tCtrl+L")); - // hilight submenu + // highlight submenu wxMenu *menuHilight = new wxMenu; int Nr; for (Nr = 0; Nr < g_LanguagePrefsSize; Nr++) { @@ -500,7 +500,7 @@ void AppFrame::CreateMenu () // View menu wxMenu *menuView = new wxMenu; - menuView->Append (myID_HILIGHTLANG, _("&Hilight language .."), menuHilight); + menuView->Append (myID_HILIGHTLANG, _("&Highlight language .."), menuHilight); menuView->AppendSeparator(); menuView->AppendCheckItem (myID_FOLDTOGGLE, _("&Toggle current fold\tCtrl+T")); menuView->AppendCheckItem (myID_OVERTYPE, _("&Overwrite mode\tIns"));