]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_radbx.cpp
GetMenuBar() now traverses up the hierarchy so it no longer has to be done here.
[wxWidgets.git] / src / xrc / xh_radbx.cpp
index 244960bd133b5fa9ae206fbe6ea51f16bebb3f1c..0bff4dda51b134eabe0cc98880e1cf87003888a0 100644 (file)
 
 #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)
 {
@@ -83,7 +86,10 @@ wxObject *wxRadioBoxXmlHandler::DoCreateResource()
         // 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;
     }