mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Normalize localization comments — fix issues found by the new scripts/check_localization_comments.py.
This commit is contained in:
1 parent
be89dcbd22
commit
6393f50e01
14 files changed
+41
-39
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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")!
|
||||
}
|
||||
@@ -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") {
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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.")
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user