X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02df379910a86bdde7e81b7f62d890cc314b4554..6d460f765defd7b4af3a681501a110d454881e80:/src/xrc/xh_combo.cpp?ds=sidebyside diff --git a/src/xrc/xh_combo.cpp b/src/xrc/xh_combo.cpp index 3d708c3a49..2a17231c4f 100644 --- a/src/xrc/xh_combo.cpp +++ b/src/xrc/xh_combo.cpp @@ -83,7 +83,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; }