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