X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..6edf1107031284fdcf5e6eabc6b87a7367e28185:/src/xrc/xh_combo.cpp diff --git a/src/xrc/xh_combo.cpp b/src/xrc/xh_combo.cpp index daeb0d70f7..03fa009eb4 100644 --- a/src/xrc/xh_combo.cpp +++ b/src/xrc/xh_combo.cpp @@ -21,9 +21,12 @@ #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) { @@ -82,7 +85,10 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource() // handle Label // 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; }