wxString str = GetNodeContent(m_node);
wxString tooltip;
- m_node->GetPropVal(wxT("tooltip"), &tooltip);
+ m_node->GetAttribute(wxT("tooltip"), &tooltip);
wxString helptext;
- bool hasHelptext = m_node->GetPropVal(wxT("helptext"), &helptext);
+ bool hasHelptext = m_node->GetAttribute(wxT("helptext"), &helptext);
if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
{
- str = wxGetTranslation(str);
+ str = wxGetTranslation(str, m_resource->GetDomain());
if ( !tooltip.empty() )
- tooltip = wxGetTranslation(tooltip);
+ tooltip = wxGetTranslation(tooltip, m_resource->GetDomain());
if ( hasHelptext )
- helptext = wxGetTranslation(helptext);
+ helptext = wxGetTranslation(helptext, m_resource->GetDomain());
}
labels.push_back(str);