X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..c9ee09924f9c08b848838e304ec6ec8b8363d914:/src/xrc/xh_choic.cpp?ds=sidebyside diff --git a/src/xrc/xh_choic.cpp b/src/xrc/xh_choic.cpp index e9ff297b64..f2dd0bdb43 100644 --- a/src/xrc/xh_choic.cpp +++ b/src/xrc/xh_choic.cpp @@ -21,6 +21,7 @@ #include "wx/xrc/xh_choic.h" #include "wx/choice.h" +#include "wx/intl.h" wxChoiceXmlHandler::wxChoiceXmlHandler() : wxXmlResourceHandler() , m_insideBox(FALSE) @@ -76,7 +77,10 @@ wxObject *wxChoiceXmlHandler::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; }