X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02df379910a86bdde7e81b7f62d890cc314b4554..017b6a0d408341c918859e88dd1f5882642d7df0:/contrib/src/xrc/xh_combo.cpp diff --git a/contrib/src/xrc/xh_combo.cpp b/contrib/src/xrc/xh_combo.cpp index 3d708c3a49..03fa009eb4 100644 --- a/contrib/src/xrc/xh_combo.cpp +++ b/contrib/src/xrc/xh_combo.cpp @@ -25,6 +25,8 @@ #if wxUSE_COMBOBOX +IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler) + wxComboBoxXmlHandler::wxComboBoxXmlHandler() : wxXmlResourceHandler() , m_insideBox(FALSE) { @@ -83,7 +85,10 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource() // handle Label // 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; }