+ // we handle handle <item>Label</item> constructs here, and the item
+ // tag can have tooltip, helptext, enabled and hidden attributes
+
+ wxString label = GetNodeContent(m_node);
+
+ 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)
+ {
+ label = wxGetTranslation(label, m_resource->GetDomain());
+ if ( !tooltip.empty() )
+ tooltip = wxGetTranslation(tooltip, m_resource->GetDomain());
+ if ( hasHelptext )
+ helptext = wxGetTranslation(helptext, m_resource->GetDomain());
+ }