]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_combo.cpp
Remove unnecessary header dependencies. Fix resulting compilation
[wxWidgets.git] / src / xrc / xh_combo.cpp
index daeb0d70f7688ec84349254bee601df83f74a321..2a17231c4f939cdd60b6ffd553bab2430b34cfe2 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "wx/xrc/xh_combo.h"
 #include "wx/combobox.h"
+#include "wx/intl.h"
 
 #if wxUSE_COMBOBOX
 
@@ -82,7 +83,10 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource()
         // 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;
     }