git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13081
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString wxXmlResourceHandler::GetText(const wxString& param)
{
wxString wxXmlResourceHandler::GetText(const wxString& param)
{
- wxString str1 = GetParamValue(param);
wxString str2;
const wxChar *dt;
wxChar amp_char;
wxString str2;
const wxChar *dt;
wxChar amp_char;
+ if (m_resource->GetUseLocale())
+ str1 = wxGetTranslation(GetParamValue(param));
+ else
+ str1 = GetParamValue(param);
+
// VS: First version of XRC resources used $ instead of & (which is illegal in XML),
// but later I realized that '_' fits this purpose much better (because
// &File means "File with F underlined").
// VS: First version of XRC resources used $ instead of & (which is illegal in XML),
// but later I realized that '_' fits this purpose much better (because
// &File means "File with F underlined").
-
- if (m_resource->GetUseLocale())
- return wxGetTranslation(str2);
- else
- return str2;
wxString wxXmlResourceHandler::GetText(const wxString& param)
{
wxString wxXmlResourceHandler::GetText(const wxString& param)
{
- wxString str1 = GetParamValue(param);
wxString str2;
const wxChar *dt;
wxChar amp_char;
wxString str2;
const wxChar *dt;
wxChar amp_char;
+ if (m_resource->GetUseLocale())
+ str1 = wxGetTranslation(GetParamValue(param));
+ else
+ str1 = GetParamValue(param);
+
// VS: First version of XRC resources used $ instead of & (which is illegal in XML),
// but later I realized that '_' fits this purpose much better (because
// &File means "File with F underlined").
// VS: First version of XRC resources used $ instead of & (which is illegal in XML),
// but later I realized that '_' fits this purpose much better (because
// &File means "File with F underlined").
-
- if (m_resource->GetUseLocale())
- return wxGetTranslation(str2);
- else
- return str2;