don't include strings that shouldn't be translated in gettext output
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -818,9 +818,13 @@ wxArrayString XmlResApp::FindStrings(wxXmlNode *node)
|
|||||||
node/*not n!*/->GetName() == _T("item")
|
node/*not n!*/->GetName() == _T("item")
|
||||||
))
|
))
|
||||||
// ...and known to contain translatable string
|
// ...and known to contain translatable string
|
||||||
|
{
|
||||||
|
if (!flagGettext ||
|
||||||
|
node->GetPropVal(_T("translate"), _T("1")) != _T("0"))
|
||||||
{
|
{
|
||||||
arr.Add(ConvertText(n->GetContent()));
|
arr.Add(ConvertText(n->GetContent()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// subnodes:
|
// subnodes:
|
||||||
if (n->GetType() == wxXML_ELEMENT_NODE)
|
if (n->GetType() == wxXML_ELEMENT_NODE)
|
||||||
|
@@ -818,9 +818,13 @@ wxArrayString XmlResApp::FindStrings(wxXmlNode *node)
|
|||||||
node/*not n!*/->GetName() == _T("item")
|
node/*not n!*/->GetName() == _T("item")
|
||||||
))
|
))
|
||||||
// ...and known to contain translatable string
|
// ...and known to contain translatable string
|
||||||
|
{
|
||||||
|
if (!flagGettext ||
|
||||||
|
node->GetPropVal(_T("translate"), _T("1")) != _T("0"))
|
||||||
{
|
{
|
||||||
arr.Add(ConvertText(n->GetContent()));
|
arr.Add(ConvertText(n->GetContent()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// subnodes:
|
// subnodes:
|
||||||
if (n->GetType() == wxXML_ELEMENT_NODE)
|
if (n->GetType() == wxXML_ELEMENT_NODE)
|
||||||
|
Reference in New Issue
Block a user