X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21567b0960efa40f51275e9e6216bf880eccff3a..348357a1d7192acef3fdfe5c175b71ed6b7f6d88:/utils/wxrc/wxrc.cpp diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 9597c6e2d8..8fc4ee0ac5 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -140,7 +140,7 @@ public: { const XRCWidgetData& w = m_wdata.Item(i); if( !CanBeUsedWithXRCCTRL(w.GetClass()) ) continue; - if( w.GetName().Length() == 0 ) continue; + if( w.GetName().empty() ) continue; file.Write( wxT(" ") + w.GetClass() + wxT("* ") + w.GetName() + wxT(";\n")); @@ -155,7 +155,7 @@ public: { const XRCWidgetData& w = m_wdata.Item(i); if( !CanBeUsedWithXRCCTRL(w.GetClass()) ) continue; - if( w.GetName().Length() == 0 ) continue; + if( w.GetName().empty() ) continue; file.Write( wxT(" ") + w.GetName() + wxT(" = XRCCTRL(*this,\"") @@ -896,7 +896,9 @@ static wxString ConvertText(const wxString& str) { if (*dt == wxT('_')) { - if ( *(++dt) == wxT('_') ) + if ( *(dt+1) == 0 ) + str2 << wxT('_'); + else if ( *(++dt) == wxT('_') ) str2 << wxT('_'); else str2 << wxT('&') << *dt; @@ -950,7 +952,14 @@ XmlResApp::FindStrings(const wxString& filename, wxXmlNode *node) node/*not n!*/->GetName() == wxT("tooltip") || node/*not n!*/->GetName() == wxT("htmlcode") || node/*not n!*/->GetName() == wxT("title") || - node/*not n!*/->GetName() == wxT("item") + node/*not n!*/->GetName() == wxT("item") || + node/*not n!*/->GetName() == wxT("message") || + node/*not n!*/->GetName() == wxT("note") || + node/*not n!*/->GetName() == wxT("defaultdirectory") || + node/*not n!*/->GetName() == wxT("defaultfilename") || + node/*not n!*/->GetName() == wxT("defaultfolder") || + node/*not n!*/->GetName() == wxT("filter") || + node/*not n!*/->GetName() == wxT("caption") )) // ...and known to contain translatable string {