#include "wx/xrc/xh_radbx.h"
#include "wx/radiobox.h"
+#include "wx/intl.h"
#if wxUSE_RADIOBOX
+IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler)
+
wxRadioBoxXmlHandler::wxRadioBoxXmlHandler()
: wxXmlResourceHandler(), m_insideBox(FALSE)
{
// handle <item selected="boolean">Label</item>
// add to the list
- strList.Add(GetNodeContent(m_node));
+ wxString str = GetNodeContent(m_node);
+ if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
+ str = wxGetTranslation(str);
+ strList.Add(str);
return NULL;
}