X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d876ee3f727afa0d79aa5f7b03bf9a59673bef6..9d2cef1c694eb0c34ae4b9c9bd7ab04e3255301d:/src/xrc/xmlres.cpp?ds=sidebyside diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index bd45b37185..8a630df247 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -631,14 +631,14 @@ int wxXmlResourceHandler::GetStyle(const wxString& param, int defaults) -wxString wxXmlResourceHandler::GetText(const wxString& param) +wxString wxXmlResourceHandler::GetText(const wxString& param, bool translate) { wxString str1; wxString str2; const wxChar *dt; wxChar amp_char; - if (m_resource->GetFlags() & wxXRC_USE_LOCALE) + if (translate && m_resource->GetFlags() & wxXRC_USE_LOCALE) str1 = wxGetTranslation(GetParamValue(param)); else str1 = GetParamValue(param);