diff --git a/Mac/CloudKitStats/CleanUp/CloudKitStatsCleanUpContentView.swift b/Mac/CloudKitStats/CleanUp/CloudKitStatsCleanUpContentView.swift index 6fb561888..99b6664b9 100644 --- a/Mac/CloudKitStats/CleanUp/CloudKitStatsCleanUpContentView.swift +++ b/Mac/CloudKitStats/CleanUp/CloudKitStatsCleanUpContentView.swift @@ -88,7 +88,7 @@ private extension CloudKitStatsCleanUpContentView { errorTextField.isHidden = true refreshButton.bezelStyle = .rounded - refreshButton.title = NSLocalizedString("Refresh", comment: "Refresh button") + refreshButton.title = NSLocalizedString("Refresh", comment: "Refresh") refreshButton.translatesAutoresizingMaskIntoConstraints = false refreshButton.isHidden = true } diff --git a/Mac/CloudKitStats/Scan/CloudKitStatsScanViewController.swift b/Mac/CloudKitStats/Scan/CloudKitStatsScanViewController.swift index 2eab96426..ce97ca289 100644 --- a/Mac/CloudKitStats/Scan/CloudKitStatsScanViewController.swift +++ b/Mac/CloudKitStats/Scan/CloudKitStatsScanViewController.swift @@ -101,7 +101,7 @@ private extension CloudKitStatsScanViewController { statusView.spinner.stopAnimation(nil) statusView.statusIcon.isHidden = false statusView.statusTextField.stringValue = NSLocalizedString("Scan completed.", comment: "Scan status text when completed") - statusView.actionButton.title = NSLocalizedString("Refresh", comment: "Refresh button") + statusView.actionButton.title = NSLocalizedString("Refresh", comment: "Refresh") statusView.actionButton.keyEquivalent = "" statusView.actionButton.action = #selector(CloudKitStatsViewController.refreshScan(_:)) statusView.statusTextLeadingToSpinner.isActive = true @@ -111,7 +111,7 @@ private extension CloudKitStatsScanViewController { statusView.spinner.stopAnimation(nil) statusView.statusIcon.isHidden = true statusView.statusTextField.stringValue = NSLocalizedString("Scan failed. Numbers are incomplete.", comment: "Scan status text on error") - statusView.actionButton.title = NSLocalizedString("Refresh", comment: "Refresh button") + statusView.actionButton.title = NSLocalizedString("Refresh", comment: "Refresh") statusView.actionButton.keyEquivalent = "" statusView.actionButton.action = #selector(CloudKitStatsViewController.refreshScan(_:)) statusView.statusTextLeadingToSpinner.isActive = false @@ -122,7 +122,7 @@ private extension CloudKitStatsScanViewController { statusView.spinner.stopAnimation(nil) statusView.statusIcon.isHidden = true statusView.statusTextField.stringValue = NSLocalizedString("Canceled.", comment: "Scan status text when canceled") - statusView.actionButton.title = NSLocalizedString("Refresh", comment: "Refresh button") + statusView.actionButton.title = NSLocalizedString("Refresh", comment: "Refresh") statusView.actionButton.keyEquivalent = "" statusView.actionButton.action = #selector(CloudKitStatsViewController.refreshScan(_:)) statusView.statusTextLeadingToSpinner.isActive = false diff --git a/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift b/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift index ffb83f47a..1e4a7b30e 100644 --- a/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift +++ b/Mac/Preferences/Accounts/AccountsFeedbinWindowController.swift @@ -38,7 +38,7 @@ final class AccountsFeedbinWindowController: NSWindowController { noAccountTextField.isHidden = true createNewAccountButton.isHidden = true } else { - actionButton.title = NSLocalizedString("Create", comment: "Add Account") + actionButton.title = NSLocalizedString("Create", comment: "Create") signInTextField.stringValue = NSLocalizedString("Sign in to your Feedbin account.", comment: "SignIn") } diff --git a/Modules/Account/Sources/Account/Account.swift b/Modules/Account/Sources/Account/Account.swift index 82e83ff94..c470d0200 100644 --- a/Modules/Account/Sources/Account/Account.swift +++ b/Modules/Account/Sources/Account/Account.swift @@ -57,16 +57,17 @@ nonisolated public enum AccountType: Int, Codable, Sendable { switch self { case .onMyMac: return NSLocalizedString("account.name.on-my-device", tableName: "DefaultAccountNames", comment: "Device specific default account name, e.g: On My iPhone") + // These proper names don’t have a translation. case .cloudKit: - return NSLocalizedString("iCloud", comment: "iCloud") + return "iCloud" case .feedly: - return NSLocalizedString("Feedly", comment: "Feedly") + return "Feedly" case .feedbin: - return NSLocalizedString("Feedbin", comment: "Feedbin") + return "Feedbin" case .newsBlur: - return NSLocalizedString("NewsBlur", comment: "NewsBlur") + return "NewsBlur" case .freshRSS: - return NSLocalizedString("FreshRSS", comment: "Account name") + return "FreshRSS" case .inoreader: return NSLocalizedString("Inoreader", comment: "Account name") case .bazQux: diff --git a/Modules/Account/Sources/Account/CloudKit/CloudKitWebDocumentation.swift b/Modules/Account/Sources/Account/CloudKit/CloudKitWebDocumentation.swift index 51b01e2d9..3aee2e603 100644 --- a/Modules/Account/Sources/Account/CloudKit/CloudKitWebDocumentation.swift +++ b/Modules/Account/Sources/Account/CloudKit/CloudKitWebDocumentation.swift @@ -8,6 +8,6 @@ import Foundation public struct CloudKitWebDocumentation { - public static let limitationsAndSolutionsText = NSLocalizedString("How to Optimize iCloud Syncing", comment: "iCloud Documentation") + public static let limitationsAndSolutionsText = NSLocalizedString("How to Optimize iCloud Syncing", comment: "Help link") public static let limitationsAndSolutionsURL = URL(string: "https://netnewswire.com/help/optimize-icloud.html")! } diff --git a/Modules/Account/Sources/Account/Feed.swift b/Modules/Account/Sources/Account/Feed.swift index 16a758b5f..9a085913c 100644 --- a/Modules/Account/Sources/Account/Feed.swift +++ b/Modules/Account/Sources/Account/Feed.swift @@ -249,7 +249,7 @@ import Articles if self.url.contains("www.reddit.com") { return NSLocalizedString("Show notifications for new posts", comment: "notifyNameDisplay / Reddit") } else { - return NSLocalizedString("Show notifications for new articles", comment: "notifyNameDisplay / Default") + return NSLocalizedString("Show notifications for new articles", comment: "Show notifications for new articles") } #else if self.url.contains("www.reddit.com") { diff --git a/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegateError.swift b/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegateError.swift index 5ae1f8f6b..3b0bef73d 100644 --- a/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegateError.swift +++ b/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegateError.swift @@ -34,7 +34,7 @@ enum FeedlyAccountDelegateError: LocalizedError { return String(format: template, name) case .unableToRenameFolder(let from, let to): - let template = NSLocalizedString("Could not rename “%@” to “%@”.", comment: "Feedly – Could not rename a folder/collection.") + let template = NSLocalizedString("Could not rename “%@” to “%@”.", comment: "Could not rename.") return String(format: template, from, to) case .unableToRemoveFolder(let name): @@ -53,7 +53,7 @@ enum FeedlyAccountDelegateError: LocalizedError { return String(format: template, folderName) case .unableToRenameFeed(let from, let to): - let template = NSLocalizedString("Could not rename “%@” to “%@”.", comment: "Feedly – Could not rename a feed.") + let template = NSLocalizedString("Could not rename “%@” to “%@”.", comment: "Could not rename.") return String(format: template, from, to) case .unableToRemoveFeed(let feedName): diff --git a/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index 79772af35..b04229383 100644 --- a/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Modules/Account/Sources/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -30,7 +30,7 @@ public enum ReaderAPIAccountDelegateError: LocalizedError { case .invalidParameter: return NSLocalizedString("An invalid parameter was passed.", comment: "An invalid parameter was passed.") case .invalidResponse: - return NSLocalizedString("There was an invalid response from the server.", comment: "There was an invalid response from the server.") + return NSLocalizedString("There was an invalid response from the server.", comment: "Invalid response") case .urlNotFound: return NSLocalizedString("The API URL wasn't found.", comment: "The API URL wasn't found.") } diff --git a/Shared/AccountType+Helpers.swift b/Shared/AccountType+Helpers.swift index 898397241..df0b83bbb 100644 --- a/Shared/AccountType+Helpers.swift +++ b/Shared/AccountType+Helpers.swift @@ -23,23 +23,24 @@ extension AccountType { switch self { case .onMyMac: - return NSLocalizedString("account.name.on-my-device", tableName: "DefaultAccountNames", comment: "Device specific default account name, e.g: On my iPhone") + return NSLocalizedString("account.name.on-my-device", tableName: "DefaultAccountNames", comment: "Device specific default account name, e.g: On My iPhone") + // These proper names are the same in all languages. case .bazQux: - return NSLocalizedString("BazQux", comment: "Account name") + return "BazQux" case .cloudKit: - return NSLocalizedString("iCloud", comment: "Account name") + return "iCloud" case .feedbin: - return NSLocalizedString("Feedbin", comment: "Account name") + return "Feedbin" case .feedly: - return NSLocalizedString("Feedly", comment: "Account name") + return "Feedly" case .freshRSS: - return NSLocalizedString("FreshRSS", comment: "Account name") + return "FreshRSS" case .inoreader: - return NSLocalizedString("Inoreader", comment: "Account name") + return "Inoreader" case .newsBlur: - return NSLocalizedString("NewsBlur", comment: "Account name") + return "NewsBlur" case .theOldReader: - return NSLocalizedString("The Old Reader", comment: "Account name") + return "The Old Reader" } } diff --git a/iOS/Account/FeedbinAccountViewController.swift b/iOS/Account/FeedbinAccountViewController.swift index 307274df9..0530b9b40 100644 --- a/iOS/Account/FeedbinAccountViewController.swift +++ b/iOS/Account/FeedbinAccountViewController.swift @@ -148,7 +148,7 @@ final class FeedbinAccountViewController: UITableViewController { } private func showError(_ message: String) { - presentError(title: NSLocalizedString("Error", comment: "Credentials Error"), message: message) + presentError(title: NSLocalizedString("Error", comment: "Error"), message: message) } private func setNavigationEnabled(to value: Bool) { diff --git a/iOS/Account/ReaderAPIAccountViewController.swift b/iOS/Account/ReaderAPIAccountViewController.swift index f929abd93..d03efa7ea 100644 --- a/iOS/Account/ReaderAPIAccountViewController.swift +++ b/iOS/Account/ReaderAPIAccountViewController.swift @@ -49,14 +49,14 @@ final class ReaderAPIAccountViewController: UITableViewController { if let unwrappedAccountType = accountType { switch unwrappedAccountType { case .freshRSS: - title = NSLocalizedString("FreshRSS", comment: "Account name") + title = "FreshRSS" apiURLTextField.placeholder = NSLocalizedString("API URL: https://fresh.rss.net/api/greader.php", comment: "FreshRSS API Helper") case .inoreader: - title = NSLocalizedString("Inoreader", comment: "Account name") + title = "Inoreader" case .bazQux: - title = NSLocalizedString("BazQux", comment: "Account name") + title = "BazQux" case .theOldReader: - title = NSLocalizedString("The Old Reader", comment: "Account name") + title = "The Old Reader" default: title = "" } @@ -73,16 +73,16 @@ final class ReaderAPIAccountViewController: UITableViewController { switch accountType { case .bazQux: footerLabel.text = NSLocalizedString("Sign in to your BazQux account and sync your feeds across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon’t have a BazQux account?", comment: "BazQux") - signUpButton.setTitle(NSLocalizedString("Sign Up Here", comment: "BazQux SignUp"), for: .normal) + signUpButton.setTitle(NSLocalizedString("Sign Up Here", comment: "Sign Up"), for: .normal) case .inoreader: footerLabel.text = NSLocalizedString("Sign in to your Inoreader account and sync your feeds across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon’t have an Inoreader account?", comment: "Inoreader") - signUpButton.setTitle(NSLocalizedString("Sign Up Here", comment: "Inoreader SignUp"), for: .normal) + signUpButton.setTitle(NSLocalizedString("Sign Up Here", comment: "Sign Up"), for: .normal) case .theOldReader: footerLabel.text = NSLocalizedString("Sign in to your The Old Reader account and sync your feeds across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon’t have a The Old Reader account?", comment: "TOR") - signUpButton.setTitle(NSLocalizedString("Sign Up Here", comment: "TOR SignUp"), for: .normal) + signUpButton.setTitle(NSLocalizedString("Sign Up Here", comment: "Sign Up"), for: .normal) case .freshRSS: footerLabel.text = NSLocalizedString("Sign in to your FreshRSS instance and sync your feeds across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon’t have an FreshRSS instance?", comment: "FreshRSS") - signUpButton.setTitle(NSLocalizedString("Find Out More", comment: "FreshRSS SignUp"), for: .normal) + signUpButton.setTitle(NSLocalizedString("Find Out More", comment: "Find Out More"), for: .normal) default: return } diff --git a/iOS/AccountStats/AccountStatsView.swift b/iOS/AccountStats/AccountStatsView.swift index 88754e609..d223ce1ac 100644 --- a/iOS/AccountStats/AccountStatsView.swift +++ b/iOS/AccountStats/AccountStatsView.swift @@ -73,7 +73,7 @@ struct AccountStatsView: View { await refresh() } } label: { - Label(NSLocalizedString("Refresh", comment: "Refresh button"), systemImage: "arrow.clockwise") + Label(NSLocalizedString("Refresh", comment: "Refresh"), systemImage: "arrow.clockwise") } .disabled(isVacuuming) } diff --git a/iOS/Settings/CloudKitStatsView.swift b/iOS/Settings/CloudKitStatsView.swift index 80d9b9b8d..c03ca6596 100644 --- a/iOS/Settings/CloudKitStatsView.swift +++ b/iOS/Settings/CloudKitStatsView.swift @@ -71,7 +71,7 @@ struct CloudKitStatsView: View { Label(NSLocalizedString("Help", comment: "Help"), systemImage: "questionmark.circle") } } label: { - Label(NSLocalizedString("More", comment: "More menu label"), systemImage: "ellipsis.circle") + Label(NSLocalizedString("More", comment: "More"), systemImage: "ellipsis.circle") } .disabled(!model.fetchStatus.isCompleted && !model.cleanUpStatus.isActive) } @@ -126,7 +126,7 @@ struct CloudKitStatsView: View { Text(NSLocalizedString("Scan completed.", comment: "Scan status text when completed")) .foregroundStyle(.secondary) Spacer() - Button(NSLocalizedString("Refresh", comment: "Refresh button")) { + Button(NSLocalizedString("Refresh", comment: "Refresh")) { model.fetch() } } @@ -172,7 +172,7 @@ struct CloudKitStatsView: View { if model.cleanUpStatus.cleanUpError != nil { Text(NSLocalizedString("Cleanup failed to complete, but you may be able to clean up more if you wait a few minutes and try again.", comment: "Cleanup error message")) .foregroundStyle(.red) - Button(NSLocalizedString("Refresh", comment: "Refresh button")) { + Button(NSLocalizedString("Refresh", comment: "Refresh")) { model.fetch() } } else if let progress = model.cleanUpStatus.progress { @@ -261,7 +261,7 @@ struct CloudKitStatsView: View { Text(text) .foregroundStyle(.secondary) Spacer() - Button(NSLocalizedString("Refresh", comment: "Refresh button")) { + Button(NSLocalizedString("Refresh", comment: "Refresh")) { model.fetch() } } diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 11cad446d..d02ab07e4 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -201,7 +201,7 @@ final class SettingsViewController: UITableViewController { let sortedAccounts = AccountManager.shared.sortedAccounts if indexPath.row == sortedAccounts.count { cell = tableView.dequeueReusableCell(withIdentifier: "SettingsTableViewCell", for: indexPath) - cell.textLabel?.text = NSLocalizedString("Add Account", comment: "Accounts") + cell.textLabel?.text = NSLocalizedString("Add Account", comment: "Add Account") } else { let acctCell = tableView.dequeueReusableCell(withIdentifier: "SettingsComboTableViewCell", for: indexPath) as! SettingsComboTableViewCell acctCell.applyThemeProperties()