X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544fee32eeac1a4f6ca3e0c7c1b13ee24f1d1c1c..f40f9976fd085fd6d2099de861159bb1062a8f46:/src/xrc/xh_chckl.cpp?ds=sidebyside diff --git a/src/xrc/xh_chckl.cpp b/src/xrc/xh_chckl.cpp index 72edfaaad7..408c02570d 100644 --- a/src/xrc/xh_chckl.cpp +++ b/src/xrc/xh_chckl.cpp @@ -21,6 +21,7 @@ #include "wx/xrc/xh_chckl.h" #include "wx/checklst.h" +#include "wx/intl.h" wxCheckListXmlHandler::wxCheckListXmlHandler() : wxXmlResourceHandler(), m_insideBox(FALSE) @@ -90,7 +91,10 @@ wxObject *wxCheckListXmlHandler::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; } }