From 54561779f07ccd24c9af8901caaf7257490c606f Mon Sep 17 00:00:00 2001 From: davidpanderson Date: Fri, 2 Dec 2022 12:43:07 -0800 Subject: [PATCH] Manager: make button labels appear in terms of use dialog. Put labels in constructor; not sure why this is needed. --- clientgui/TermsOfUsePage.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/clientgui/TermsOfUsePage.cpp b/clientgui/TermsOfUsePage.cpp index dc62eb6bea..027f0ab3f4 100644 --- a/clientgui/TermsOfUsePage.cpp +++ b/clientgui/TermsOfUsePage.cpp @@ -126,12 +126,12 @@ void CTermsOfUsePage::CreateControls() itemBoxSizer97->Add(m_pTermsOfUseCtrl, 0, wxGROW|wxALL, 5); m_pAgreeCtrl = new wxRadioButton; - m_pAgreeCtrl->Create( itemWizardPage96, ID_TERMSOFUSEAGREECTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_pAgreeCtrl->Create( itemWizardPage96, ID_TERMSOFUSEAGREECTRL, _("I agree to the terms of use."), wxDefaultPosition, wxDefaultSize, 0 ); m_pAgreeCtrl->SetValue(false); itemBoxSizer97->Add(m_pAgreeCtrl, 0, wxALIGN_LEFT|wxALL, 5); m_pDisagreeCtrl = new wxRadioButton; - m_pDisagreeCtrl->Create( itemWizardPage96, ID_TERMSOFUSEDISAGREECTRL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_pDisagreeCtrl->Create( itemWizardPage96, ID_TERMSOFUSEDISAGREECTRL, _("I do not agree to the terms of use."), wxDefaultPosition, wxDefaultSize, 0 ); m_pDisagreeCtrl->SetValue(true); itemBoxSizer97->Add(m_pDisagreeCtrl, 0, wxALIGN_LEFT|wxALL, 5); @@ -244,21 +244,13 @@ void CTermsOfUsePage::OnPageChanged( wxWizardExEvent& event ) { } m_pTermsOfUseCtrl->SetPage(terms_of_use); - m_pAgreeCtrl->SetLabel( - _("I agree to the terms of use.") - ); m_pAgreeCtrl->SetValue(false); - - m_pDisagreeCtrl->SetLabel( - _("I do not agree to the terms of use.") - ); m_pDisagreeCtrl->SetValue(true); SetUserAgrees(false); ((CWizardAttach*)GetParent())->DisableNextButton(); - Fit(); }