Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #8056: Update P3A callout text. (#8083)
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub committed Sep 19, 2023
1 parent a24129a commit c9f71f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ extension BrowserViewController {
toggleTitle: Strings.Callout.p3aCalloutToggleTitle,
details: Strings.Callout.p3aCalloutDescription,
linkDescription: Strings.Callout.p3aCalloutLinkTitle,
primaryButtonTitle: Strings.done,
primaryButtonTitle: Strings.P3A.continueButton,
toggleAction: { [weak self] isOn in
self?.braveCore.p3aUtils.isP3AEnabled = isOn
},
Expand Down
5 changes: 5 additions & 0 deletions Sources/BraveStrings/BraveStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4576,6 +4576,11 @@ extension Strings {
"p3a.settingSubtitle", tableName: "BraveShared", bundle: .module,
value: "Anonymised P3A info helps Brave estimate overall usage and ensure we're improving popular features.",
comment: "A subtitle shown on the setting that toggles analytics on Brave.")

public static let continueButton = NSLocalizedString(
"p3a.continue", tableName: "BraveShared", bundle: .module,
value: "Continue",
comment: "A button to proceed with the rest of the user onboarding after they see the P3A introduction. It means to continue browsing or continue with the rest of the onboarding")
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Onboarding/Welcome/WelcomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public class WelcomeViewController: UIViewController {
toggleTitle: Strings.Callout.p3aCalloutToggleTitle,
details: Strings.Callout.p3aCalloutDescription,
linkDescription: Strings.Callout.p3aCalloutLinkTitle,
primaryButtonTitle: Strings.done,
primaryButtonTitle: Strings.P3A.continueButton,
toggleAction: { [weak self] isOn in
self?.p3aUtilities.isP3AEnabled = isOn
},
Expand Down

0 comments on commit c9f71f4

Please sign in to comment.