Skip to content

Commit

Permalink
Update to use correct text on iOS 14 (#2328)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1206328550686826/f
Tech Design URL:
CC:

Description:

Update text to a valid one.
  • Loading branch information
bwaresiak authored Jan 11, 2024
1 parent bcba25b commit bee3aa3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@
/* Options - Fetch Favicons Title */
"fetch.favicons.option.title" = "Auto-Download Icons";

/* Manually Enter Code View - Instruction with sync menu path and view text code menu item inserted */
"manually.enter.code.instruction" = "Go to Settings > Sync & Backup > Sync With Another Device and select Sync Menu Path in the DuckDuckGo App on another synced device and paste the code here to sync this device.";

/* Manually Enter Code View - Instruction with sync menu path and view text code menu item inserted */
"manually.enter.code.instruction.attributed" = "Go to %1$@ and select %2$@ in the DuckDuckGo App on another synced device and paste the code here to sync this device.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ struct UserText {
let localized = NSLocalizedString("manually.enter.code.instruction.attributed", bundle: Bundle.module, value: "Go to %@ and select %@ in the DuckDuckGo App on another synced device and paste the code here to sync this device.", comment: "Manually Enter Code View - Instruction with sync menu path and view text code menu item inserted")
return String(format: localized, syncMenuPath, menuItem)
}
static let manuallyEnterCodeInstruction = NSLocalizedString("manually.enter.code.instruction", bundle: Bundle.module, value: "Go to Settings > Sync & Backup > Sync With Another Device and select Sync Menu Path in the DuckDuckGo App on another synced device and paste the code here to sync this device.", comment: "Manually Enter Code View - Instruction with sync menu path and view text code menu item inserted")
static let syncMenuPath = NSLocalizedString("sync.menu.path", bundle: Bundle.module, value: "Settings > Sync & Backup > Sync With Another Device", comment: "Sync Menu Path")
static let viewTextCodeMenuItem = NSLocalizedString("view.text.code.menu.item", bundle: Bundle.module, value: "View Text Code", comment: "View Text Code menu item")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public struct PasteCodeView: View {
.foregroundColor(.white.opacity(0.6))
.padding()
} else {
Text(UserText.manuallyEnterCodeInstruction)
Text(UserText.manuallyEnterCodeInstructionAttributed(syncMenuPath: UserText.syncMenuPath,
menuItem: UserText.viewTextCodeMenuItem))
.lineLimit(nil)
.multilineTextAlignment(.center)
.foregroundColor(.white.opacity(0.6))
Expand Down

0 comments on commit bee3aa3

Please sign in to comment.