]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xrc/xh_radbx.cpp
Applied patch [ 700313 ] Allow wxUSE_OWNER_DRAWN = 0
[wxWidgets.git] / contrib / src / xrc / xh_radbx.cpp
index 6ba0e86182b098520cde51ab9127139826e7c7e7..f2f229cd9c753de3855b9c70e0201b418eec554d 100644 (file)
@@ -84,7 +84,10 @@ wxObject *wxRadioBoxXmlHandler::DoCreateResource()
         // handle <item selected="boolean">Label</item>
 
         // add to the list
-        strList.Add(wxGetTranslation(GetNodeContent(m_node)));
+        wxString str = GetNodeContent(m_node);
+        if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
+            str = wxGetTranslation(str);
+        strList.Add(str);
 
         return NULL;
     }