+ 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());
+ }
+
+ m_labels.push_back(label);
+#if wxUSE_TOOLTIPS
+ m_tooltips.push_back(tooltip);
+#endif // wxUSE_TOOLTIPS
+#if wxUSE_HELP
+ m_helptexts.push_back(helptext);
+ m_helptextSpecified.push_back(hasHelptext);
+#endif // wxUSE_HELP
+ m_isEnabled.push_back(GetBoolAttr("enabled", 1));
+ m_isShown.push_back(!GetBoolAttr("hidden", 0));