]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxrc/wxrc.cpp
SetSelection() for generic wxSpinCtrl (forgot to commit before)
[wxWidgets.git] / utils / wxrc / wxrc.cpp
index dd500783005ca2ed182603c29acab098e64e0d2c..65a606db6e4135b4a0aa5ecdc266f278bc9a3efe 100644 (file)
@@ -514,7 +514,7 @@ void XmlResApp::OutputGettext()
     else fout.Open(parOutput, _T("wt"));
     
     for (size_t i = 0; i < str.GetCount(); i++)
-        fout.Write(_T("_(\"") + str[i] + _T("\")\n"));
+        fout.Write(_T("_(\"") + str[i] + _T("\");\n"));
     
     if (!parOutput) fout.Detach();
 }
@@ -567,6 +567,8 @@ static wxString ConvertText(const wxString& str)
                 case wxT('\n') : str2 << wxT("\\n"); break;
                 case wxT('\t') : str2 << wxT("\\t"); break;
                 case wxT('\r') : str2 << wxT("\\r"); break;
+                case wxT('\\') : str2 << wxT("\\\\"); break;
+                case wxT('"')  : str2 << wxT("\\\""); break;
                 default        : str2 << *dt; break;
             }
         }
@@ -599,7 +601,8 @@ wxArrayString XmlResApp::FindStrings(wxXmlNode *node)
                 node/*not n!*/->GetName() == _T("longhelp") ||
                 node/*not n!*/->GetName() == _T("tooltip") ||
                 node/*not n!*/->GetName() == _T("htmlcode") ||
-                node/*not n!*/->GetName() == _T("title")
+                node/*not n!*/->GetName() == _T("title") ||
+                node/*not n!*/->GetName() == _T("item")
             ))
             // ...and known to contain translatable string
         {