]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_radbx.cpp
1. Added m_count and maintain its value in InsertItem, RemoveItem
[wxWidgets.git] / src / xrc / xh_radbx.cpp
index 244960bd133b5fa9ae206fbe6ea51f16bebb3f1c..f2f229cd9c753de3855b9c70e0201b418eec554d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "wx/xrc/xh_radbx.h"
 #include "wx/radiobox.h"
+#include "wx/intl.h"
 
 #if wxUSE_RADIOBOX
 
@@ -83,7 +84,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;
     }