X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02df379910a86bdde7e81b7f62d890cc314b4554..16c587ca765d00a17eb4fe83f6d94901a08801a4:/src/xrc/xh_combo.cpp?ds=inline diff --git a/src/xrc/xh_combo.cpp b/src/xrc/xh_combo.cpp index 3d708c3a49..03fa009eb4 100644 --- a/src/xrc/xh_combo.cpp +++ b/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; }