| @@ -45,11 +45,11 @@ | ||
| 45 | 45 | public const CONSENT_COOKIE = 'xspeed_ai_consent'; |
| 46 | 46 | |
| 47 | 47 | public function ui_metadata(): array { |
| 48 | 48 | return array( |
| 49 | - 'label' => 'AI Privacy', | |
| 49 | + 'label' => __( 'AI Privacy', 'xspeed' ), | |
| 50 | 50 | 'icon' => 'Shield', |
| 51 | - 'description' => 'Govern whether AI-powered features (Pro) may collect data from your visitors. The off-switch is here in Free because privacy is a fundamental right, not a paid feature.', | |
| 51 | + 'description' => __( 'Govern whether AI-powered features (Pro) may collect data from your visitors. The off-switch is here in Free because privacy is a fundamental right, not a paid feature.', 'xspeed' ), | |
| 52 | 52 | ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| @@ -66,16 +66,16 @@ | ||
| 66 | 66 | return array( |
| 67 | 67 | 'gdpr_consent_required' => array( |
| 68 | 68 | 'type' => 'bool', |
| 69 | 69 | 'default' => true, |
| 70 | - 'label' => 'Require consent before AI data collection', | |
| 71 | - 'description' => 'When ON, AI-powered features only record data after a visitor accepts the consent banner. When OFF, they collect from every visitor — only legal in regions without GDPR-style consent rules. The setting applies even if Pro is not installed (so a later Pro upgrade respects whichever choice you made).', | |
| 70 | + 'label' => __( 'Require consent before AI data collection', 'xspeed' ), | |
| 71 | + 'description' => __( 'When ON, AI-powered features only record data after a visitor accepts the consent banner. When OFF, they collect from every visitor — only legal in regions without GDPR-style consent rules. The setting applies even if Pro is not installed (so a later Pro upgrade respects whichever choice you made).', 'xspeed' ), | |
| 72 | 72 | ), |
| 73 | 73 | 'consent_banner_text' => array( |
| 74 | 74 | 'type' => 'string', |
| 75 | 75 | 'default' => 'We collect anonymized navigation and performance data to make this site faster. Accept to help us optimize your experience.', |
| 76 | - 'label' => 'Consent banner text', | |
| 77 | - 'description' => 'Shown in the cookie consent banner. Keep it factual — what you collect (page navigation, performance metrics) and why.', | |
| 76 | + 'label' => __( 'Consent banner text', 'xspeed' ), | |
| 77 | + 'description' => __( 'Shown in the cookie consent banner. Keep it factual — what you collect (page navigation, performance metrics) and why.', 'xspeed' ), | |
| 78 | 78 | ), |
| 79 | 79 | ); |
| 80 | 80 | } |
| 81 | 81 | |