From 86e1d4c684a79fac63bd788ec56b21e54f1484c2 Mon Sep 17 00:00:00 2001
From: Jeff Young <jeff@rokeby.ie>
Date: Thu, 20 Mar 2025 10:23:46 +0000
Subject: [PATCH] Shorten opt-in text and improve Yes/No button labels.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20027
---
 common/pgm_base.cpp | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp
index d439bcaf7b..d24f7d2aeb 100644
--- a/common/pgm_base.cpp
+++ b/common/pgm_base.cpp
@@ -374,23 +374,21 @@ void PGM_BASE::sentryPrompt()
     if( !IsGUI() )
         return;
 
-    KIPLATFORM::POLICY::PBOOL policyState =
-            KIPLATFORM::POLICY::GetPolicyBool( POLICY_KEY_DATACOLLECTION );
+    KIPLATFORM::POLICY::PBOOL policyState = KIPLATFORM::POLICY::GetPolicyBool( POLICY_KEY_DATACOLLECTION );
 
     if( policyState == KIPLATFORM::POLICY::PBOOL::NOT_CONFIGURED
-        && !m_settings_manager->GetCommonSettings()->m_DoNotShowAgain.data_collection_prompt )
+            && !m_settings_manager->GetCommonSettings()->m_DoNotShowAgain.data_collection_prompt )
     {
         wxMessageDialog optIn = wxMessageDialog(
                 nullptr,
-                _( "KiCad can anonymously report crashes and special event "
-                   "data to developers in order to aid identifying critical bugs "
-                   "across the user base more effectively and help profile "
-                   "functionality to guide improvements. \n"
-                   "If you choose to voluntarily participate, KiCad will automatically "
-                   "handle sending said reports when crashes or events occur. \n"
-                   "Your design files such as schematic or PCB are not shared in this process." ),
-                _( "Data collection opt in request" ), wxYES_NO | wxCENTRE );
+                _( "KiCad can anonymously report crashes and special event data to developers in order to "
+                   "aid identifying critical bugs and help profile functionality to guide improvements. \n"
+                   "If you choose to voluntarily participate, KiCad will automatically send said reports "
+                   "when crashes or events occur. \n"
+                   "Your design files such as schematic and PCB are not shared in this process." ),
+                _( "Data Collection Opt In" ), wxYES_NO | wxCENTRE );
 
+        optIn.SetYesNoLabels( _( "Opt In" ), _( "Decline" ) );
         int result = optIn.ShowModal();
 
         if( result == wxID_YES )