- applied patch that adds more i18n support to XRC handlers

- added ; to ends of lines in gettext output - needed for older gettext tools?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-08-31 15:37:20 +00:00
parent 02df379910
commit 0653d364dd
2 changed files with 6 additions and 4 deletions

View File

@@ -514,7 +514,7 @@ void XmlResApp::OutputGettext()
else fout.Open(parOutput, _T("wt")); else fout.Open(parOutput, _T("wt"));
for (size_t i = 0; i < str.GetCount(); i++) 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(); if (!parOutput) fout.Detach();
} }
@@ -601,7 +601,8 @@ wxArrayString XmlResApp::FindStrings(wxXmlNode *node)
node/*not n!*/->GetName() == _T("longhelp") || node/*not n!*/->GetName() == _T("longhelp") ||
node/*not n!*/->GetName() == _T("tooltip") || node/*not n!*/->GetName() == _T("tooltip") ||
node/*not n!*/->GetName() == _T("htmlcode") || 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 // ...and known to contain translatable string
{ {

View File

@@ -514,7 +514,7 @@ void XmlResApp::OutputGettext()
else fout.Open(parOutput, _T("wt")); else fout.Open(parOutput, _T("wt"));
for (size_t i = 0; i < str.GetCount(); i++) 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(); if (!parOutput) fout.Detach();
} }
@@ -601,7 +601,8 @@ wxArrayString XmlResApp::FindStrings(wxXmlNode *node)
node/*not n!*/->GetName() == _T("longhelp") || node/*not n!*/->GetName() == _T("longhelp") ||
node/*not n!*/->GetName() == _T("tooltip") || node/*not n!*/->GetName() == _T("tooltip") ||
node/*not n!*/->GetName() == _T("htmlcode") || 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 // ...and known to contain translatable string
{ {