Skip to content

Commit

Permalink
Fix brave/brave-ios#8056: Update P3A callout text. (brave/brave-ios#8083
Browse files Browse the repository at this point in the history
)
  • Loading branch information
iccub authored Sep 18, 2023
1 parent 216e931 commit a9bee04
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 a9bee04

Please sign in to comment.