X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6636ef8ddf9eda0d0352c29d98cb141676a51a2d..7a36d9c7c1a077ba7e05c248bcf19c4c9bb1356f:/utils/wxrc/wxrc.cpp diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 9e580866c3..3b26f9d4c9 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -356,7 +356,8 @@ void XmlResApp::CompileRes() { wxArrayString files = PrepareTempFiles(); - wxRemoveFile(parOutput); + if ( wxFileExists(parOutput) ) + wxRemoveFile(parOutput); if (!retCode) { @@ -896,7 +897,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 +953,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 {