Skip to content

Commit

Permalink
Updated Safari import instructions for passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Dec 17, 2024
1 parent 246c6d5 commit 8a0d268
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
40 changes: 28 additions & 12 deletions DuckDuckGo/DataImport/View/FileImportView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,18 +275,34 @@ func fileImportInstructionsBuilder(source: DataImport.Source, dataType: DataImpo
button(UserText.importBookmarksSelectHTMLFile)

case (.safari, .passwords), (.safariTechnologyPreview, .passwords):
NSLocalizedString("import.csv.instructions.safari", value: """
%d Open **Safari**
%d Select **File → Export → Passwords**
%d Save the passwords file someplace you can find it (e.g., Desktop)
%d %@
""", comment: """
Instructions to import Passwords as CSV from Safari.
%N$d - step number
%5$@ - “Select Passwords CSV File” button
**bold text**; _italic text_
""")
button(UserText.importLoginsSelectCSVFile)
if #available(macOS 15.2, *) {
NSLocalizedString("import.csv.instructions.safari.macos15-2", value: """
%d Open **Safari**
%d Open the **File menu → Export Browsing Data to File...**
%d Select **passwords** and save the file someplace you can find it (e.g., Desktop)
%d Double click the .zip file to unzip it
%d %@
""", comment: """
Instructions to import Passwords as CSV from Safari zip file on >= macOS 15.2.
%N$d - step number
%5$@ - “Select Passwords CSV File” button
**bold text**; _italic text_
""")
button(UserText.importLoginsSelectCSVFile)
} else {
NSLocalizedString("import.csv.instructions.safari", value: """
%d Open **Safari**
%d Select **File → Export → Passwords**
%d Save the passwords file someplace you can find it (e.g., Desktop)
%d %@
""", comment: """
Instructions to import Passwords as CSV from Safari.
%N$d - step number
%5$@ - “Select Passwords CSV File” button
**bold text**; _italic text_
""")
button(UserText.importLoginsSelectCSVFile)
}

case (.safari, .bookmarks), (.safariTechnologyPreview, .bookmarks):
NSLocalizedString("import.html.instructions.safari", value: """
Expand Down
12 changes: 12 additions & 0 deletions DuckDuckGo/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -31111,6 +31111,18 @@
}
}
},
"import.csv.instructions.safari.macos15-2" : {
"comment" : "Instructions to import Passwords as CSV from Safari zip file on >= macOS 15.2.\n%N$d - step number\n%5$@ - “Select Passwords CSV File” button\n**bold text**; _italic text_",
"extractionState" : "extracted_with_value",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "new",
"value" : "%1$d Open **Safari**\n%2$d Open the **File menu → Export Browsing Data to File...**\n%3$d Select **passwords** and save the file someplace you can find it (e.g., Desktop)\n%4$d Double click the .zip file to unzip it\n%5$d %6$@"
}
}
}
},
"import.csv.instructions.vivaldi" : {
"comment" : "Instructions to import Passwords exported as CSV from Vivaldi browser.\n%N$d - step number\n%2$s - browser name (Vivaldi)\n%5$@ - menu button icon\n%8$@ - “Select Passwords CSV File” button\n**bold text**; _italic text_",
"extractionState" : "extracted_with_value",
Expand Down

0 comments on commit 8a0d268

Please sign in to comment.