Fix some typos in the samples.

Mostly in the comments, but also a couple in the user-visible strings.
This commit is contained in:
orbitcowboy
2015-05-21 10:45:48 +02:00
committed by Vadim Zeitlin
parent d30c075a22
commit 2afddd5e22
3 changed files with 8 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ void FormMain::OnDumpList( wxCommandEvent& WXUNUSED(event) )
{ {
wxVariant& a = v[n]; 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()); a.GetName().c_str(),a.GetType().c_str(),a.GetString().c_str());
text += t; text += t;
} }

View File

@@ -622,7 +622,7 @@ bool Edit::InitializePrefs (const wxString &name) {
SetFoldFlags (wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED | SetFoldFlags (wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED |
wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED); wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED);
// set spaces and indention // set spaces and indentation
SetTabWidth (4); SetTabWidth (4);
SetUseTabs (false); SetUseTabs (false);
SetTabIndents (true); SetTabIndents (true);
@@ -647,7 +647,7 @@ bool Edit::InitializePrefs (const wxString &name) {
bool Edit::LoadFile () bool Edit::LoadFile ()
{ {
#if wxUSE_FILEDLG #if wxUSE_FILEDLG
// get filname // get filename
if (!m_filename) { if (!m_filename) {
wxFileDialog dlg (this, wxT("Open file"), wxEmptyString, wxEmptyString, wxFileDialog dlg (this, wxT("Open file"), wxEmptyString, wxEmptyString,
wxT("Any file (*)|*"), wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR); wxT("Any file (*)|*"), wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR);
@@ -684,7 +684,7 @@ bool Edit::SaveFile ()
// return if no change // return if no change
if (!Modified()) return true; if (!Modified()) return true;
// get filname // get filename
if (!m_filename) { if (!m_filename) {
wxFileDialog dlg (this, wxT("Save file"), wxEmptyString, wxEmptyString, wxT("Any file (*)|*"), wxFileDialog dlg (this, wxT("Save file"), wxEmptyString, wxEmptyString, wxT("Any file (*)|*"),
wxFD_SAVE | wxFD_OVERWRITE_PROMPT); wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
@@ -741,7 +741,7 @@ EditProperties::EditProperties (Edit *edit,
SetTitle (_("Properties")); SetTitle (_("Properties"));
wxString text; wxString text;
// fullname // full name
wxBoxSizer *fullname = new wxBoxSizer (wxHORIZONTAL); wxBoxSizer *fullname = new wxBoxSizer (wxHORIZONTAL);
fullname->Add (10, 0); fullname->Add (10, 0);
fullname->Add (new wxStaticText (this, wxID_ANY, _("Full filename"), fullname->Add (new wxStaticText (this, wxID_ANY, _("Full filename"),

View File

@@ -91,7 +91,7 @@ class App: public wxApp {
friend class AppFrame; friend class AppFrame;
public: public:
//! the main function called durning application start //! the main function called during application start
virtual bool OnInit (); virtual bool OnInit ();
//! application exit function //! application exit function
@@ -485,7 +485,7 @@ void AppFrame::CreateMenu ()
menuEdit->Append (wxID_SELECTALL, _("&Select all\tCtrl+A")); menuEdit->Append (wxID_SELECTALL, _("&Select all\tCtrl+A"));
menuEdit->Append (myID_SELECTLINE, _("Select &line\tCtrl+L")); menuEdit->Append (myID_SELECTLINE, _("Select &line\tCtrl+L"));
// hilight submenu // highlight submenu
wxMenu *menuHilight = new wxMenu; wxMenu *menuHilight = new wxMenu;
int Nr; int Nr;
for (Nr = 0; Nr < g_LanguagePrefsSize; Nr++) { for (Nr = 0; Nr < g_LanguagePrefsSize; Nr++) {
@@ -500,7 +500,7 @@ void AppFrame::CreateMenu ()
// View menu // View menu
wxMenu *menuView = new wxMenu; wxMenu *menuView = new wxMenu;
menuView->Append (myID_HILIGHTLANG, _("&Hilight language .."), menuHilight); menuView->Append (myID_HILIGHTLANG, _("&Highlight language .."), menuHilight);
menuView->AppendSeparator(); menuView->AppendSeparator();
menuView->AppendCheckItem (myID_FOLDTOGGLE, _("&Toggle current fold\tCtrl+T")); menuView->AppendCheckItem (myID_FOLDTOGGLE, _("&Toggle current fold\tCtrl+T"));
menuView->AppendCheckItem (myID_OVERTYPE, _("&Overwrite mode\tIns")); menuView->AppendCheckItem (myID_OVERTYPE, _("&Overwrite mode\tIns"));