#include "wx/xrc/xh_combo.h"
#include "wx/combobox.h"
+#include "wx/intl.h"
#if wxUSE_COMBOBOX
+IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
+
wxComboBoxXmlHandler::wxComboBoxXmlHandler()
: wxXmlResourceHandler() , m_insideBox(FALSE)
{
// handle <item>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;
}