X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..25088f1eea365f0da7aeb565932dd4fe0fd5d20e:/contrib/src/xrc/xh_radbx.cpp?ds=sidebyside diff --git a/contrib/src/xrc/xh_radbx.cpp b/contrib/src/xrc/xh_radbx.cpp index 244960bd13..0bff4dda51 100644 --- a/contrib/src/xrc/xh_radbx.cpp +++ b/contrib/src/xrc/xh_radbx.cpp @@ -21,9 +21,12 @@ #include "wx/xrc/xh_radbx.h" #include "wx/radiobox.h" +#include "wx/intl.h" #if wxUSE_RADIOBOX +IMPLEMENT_DYNAMIC_CLASS(wxRadioBoxXmlHandler, wxXmlResourceHandler) + wxRadioBoxXmlHandler::wxRadioBoxXmlHandler() : wxXmlResourceHandler(), m_insideBox(FALSE) { @@ -83,7 +86,10 @@ wxObject *wxRadioBoxXmlHandler::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; }