Skip to content

Commit

Permalink
Update download alert copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Jul 5, 2024
1 parent 5a31f25 commit 86842aa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGo/DownloadsList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ extension DownloadsList {
Alert(
title: Text(UserText.cancelDownloadAlertTitle),
message: Text(UserText.cancelDownloadAlertDescription),
primaryButton: .cancel(Text(UserText.cancelDownloadAlertResumeAction)),
secondaryButton: .destructive(Text(UserText.cancelDownloadAlertCancelAction), action: {
primaryButton: .cancel(Text(UserText.cancelDownloadAlertNoAction)),
secondaryButton: .destructive(Text(UserText.cancelDownloadAlertYesAction), action: {
cancelDownload(for: row)
})
)
Expand Down
10 changes: 7 additions & 3 deletions DuckDuckGo/UserText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,13 @@ public struct UserText {

public static let cancelDownloadAlertTitle = NSLocalizedString("downloads.cancel-download.alert.title", value: "Cancel download?", comment: "Title for alert when trying to cancel the file download")
public static let cancelDownloadAlertDescription = NSLocalizedString("downloads.cancel-download.alert.message", value: "Are you sure you want to cancel this download?", comment: "Message for alert when trying to cancel the file download")
public static let cancelDownloadAlertResumeAction = NSLocalizedString("downloads.cancel-download.alert.resume", value: "Resume", comment: "Resume download action for alert when trying to cancel the file download")
public static let cancelDownloadAlertCancelAction = NSLocalizedString("downloads.cancel-download.alert.cancel", value: "Cancel", comment: "Cancel download action for alert when trying to cancel the file download")


public static let cancelDownloadAlertCancelAction = NSLocalizedString("downloads.cancel-download.alert.cancel", value: "Cancel", comment: "Cancel download action for downloads")
public static let cancelDownloadAlertNoAction = NSLocalizedString("downloads.cancel-download.alert.no", value: "No", comment: "Confirm action for alert when trying to cancel the file download")
public static let cancelDownloadAlertYesAction = NSLocalizedString("downloads.cancel-download.alert.yes", value: "Yes", comment: "Confirm action for for alert when trying to cancel the file download")



public static let downloadsListDeleteAllButton = NSLocalizedString("downloads.downloads-list.delete-all", value: "Delete All", comment: "Button for deleting all items on downloads list")
public static let messageDownloadFailed = NSLocalizedString("downloads.message.download-failed", value: "Failed to download. Check internet connection.", comment: "Message informing that the download has failed due to connection issues")
public static let fireButtonInterruptingDownloadsAlertDescription = NSLocalizedString("downloads.fire-button.alert.message", value: "This will also cancel downloads in progress", comment: "Additional alert message shown when there are active downloads when using the fire button")
Expand Down
7 changes: 5 additions & 2 deletions DuckDuckGo/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -832,12 +832,15 @@
/* Message for alert when trying to cancel the file download */
"downloads.cancel-download.alert.message" = "Are you sure you want to cancel this download?";

/* Resume download action for alert when trying to cancel the file download */
"downloads.cancel-download.alert.resume" = "Resume";
/* Confirm action for alert when trying to cancel the file download */
"downloads.cancel-download.alert.no" = "No";

/* Title for alert when trying to cancel the file download */
"downloads.cancel-download.alert.title" = "Cancel download?";

/* Confirm action for for alert when trying to cancel the file download */
"downloads.cancel-download.alert.yes" = "Yes";

/* Button for deleting all items on downloads list */
"downloads.downloads-list.delete-all" = "Delete All";

Expand Down

0 comments on commit 86842aa

Please sign in to comment.