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

Commit

Permalink
Fix #4431: Update error pages copy. (#4434)
Browse files Browse the repository at this point in the history
Other copy items are handled in their respective pull requests.
  • Loading branch information
iccub authored Nov 1, 2021
1 parent 242fffd commit faa5697
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions BraveShared/BraveStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ extension Strings {
extension Strings {
public static let errorPageReloadButtonTitle = NSLocalizedString("ErrorPageReloadButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Reload", comment: "Shown in error pages on a button that will try to load the page again")
public static let errorPageOpenInSafariButtonTitle = NSLocalizedString("ErrorPageOpenInSafariButtonTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Open in Safari", comment: "Shown in error pages for files that can't be shown and need to be downloaded.")
public static let errorPageCantBeReachedTry =
NSLocalizedString("errorPageCantBeReachedTry",
tableName: "BraveShared",
bundle: Bundle.braveShared,
value: "Try re-typing the URL, or opening a search engine and searching for the new URL.",
comment: "Shown in error pages to suggest a fix to the user.")
}

// MARK:- FindInPageBar.swift
Expand Down Expand Up @@ -509,9 +515,9 @@ extension Strings {

public static let errorPagesProceedAnywayButton = NSLocalizedString("ErrorPagesProceedAnywayButton", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Proceed to %@ (unsafe)", comment: "Button label to temporarily continue to the site from the certificate error page")

public static let errorPagesNoInternetTitle = NSLocalizedString("ErrorPagesNoInternetTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "No Internet", comment: "Title of the No Internet error page")
public static let errorPagesNoInternetTitle = NSLocalizedString("ErrorPagesNoInternetTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "No internet access", comment: "Title of the No Internet error page")

public static let errorPagesNoInternetTry = NSLocalizedString("ErrorPagesNoInternetTry", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Try", comment: "Text telling the user to Try: The following list of things")
public static let errorPagesNoInternetTry = NSLocalizedString("ErrorPagesNoInternetTry", tableName: "BraveShared", bundle: Bundle.braveShared, value: "It appears you're not online. To fix this, try", comment: "Text telling the user to Try: The following list of things")

public static let errorPagesNoInternetTryItem1 = NSLocalizedString("ErrorPagesNoInternetTryItem1", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Checking the network cables, modem, and router", comment: "List of things to try when internet is not working")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GenericErrorPageHandler: InterstitialPageHandler {
"page_title": model.originalURL.normalizedHost(stripWWWSubdomainOnly: true) ?? model.originalHost,
"error_code": "\(model.errorCode)",
"error_title": "This site can't be reached",
"error_description": model.description,
"error_description": model.description + "<br><br>\(Strings.errorPageCantBeReachedTry)",
"error_domain": domain,
"security_token": UserScriptManager.messageHandlerTokenString,
"actions": action
Expand Down

0 comments on commit faa5697

Please sign in to comment.