Fix typos

This commit is contained in:
Dimitris Apostolou
2022-12-31 18:52:42 +02:00
parent b1a86031fe
commit 13e78f120f
10 changed files with 14 additions and 14 deletions

View File

@@ -136,7 +136,7 @@ private extension CloudKitArticlesZoneDelegate {
account?.markAsStarred(updateableStarredArticleIDs) { databaseError in
if let databaseError = databaseError {
errorOccurred = true
self.logger.error("Error occurred while stroing starred records: \(databaseError.localizedDescription, privacy: .public)")
self.logger.error("Error occurred while storing starred records: \(databaseError.localizedDescription, privacy: .public)")
}
group.leave()
}

View File

@@ -30,7 +30,7 @@ final class FeedlyGetCollectionsOperation: FeedlyOperation, FeedlyCollectionProv
service.getCollections { result in
switch result {
case .success(let collections):
self.logger.debug("Receving collections: \(collections.map({ $0.id }), privacy: .public)")
self.logger.debug("Receiving collections: \(collections.map({ $0.id }), privacy: .public)")
self.collections = collections
self.didFinish()

View File

@@ -112,7 +112,7 @@ class SidebarCell : NSTableCellView {
override func accessibilityLabel() -> String? {
if unreadCount > 0 {
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessiblity")
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessibility")
return "\(name) \(unreadCount) \(unreadLabel)"
} else {
return name

View File

@@ -181,7 +181,7 @@ class ReaderAPIAccountViewController: UITableViewController, Logging {
case .success:
break
case .failure(let error):
self.showError(NSLocalizedString(error.localizedDescription, comment: "Accoount Refresh Error"))
self.showError(NSLocalizedString(error.localizedDescription, comment: "Account Refresh Error"))
}
}

View File

@@ -45,7 +45,7 @@ class ArticleViewController: UIViewController, MainControllerIdentifiable, Loggi
return button
}()
var mainControllerIdentifer = MainControllerIdentifier.article
var mainControllerIdentifier = MainControllerIdentifier.article
weak var coordinator: SceneCoordinator!

View File

@@ -23,7 +23,7 @@ class MasterFeedTableViewCell : VibrantTableViewCell {
set {}
get {
if unreadCount > 0 {
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessiblity")
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessibility")
return "\(name) \(unreadCount) \(unreadLabel)"
} else {
return name

View File

@@ -26,7 +26,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner, Ma
let refreshProgressModel = RefreshProgressModel()
lazy var progressBarViewController = UIHostingController(rootView: RefreshProgressView(progressBarMode: refreshProgressModel))
var mainControllerIdentifer = MainControllerIdentifier.masterFeed
var mainControllerIdentifier = MainControllerIdentifier.masterFeed
weak var coordinator: SceneCoordinator!
var undoableCommands = [UndoableCommand]()

View File

@@ -22,7 +22,7 @@ class MasterTimelineTitleView: UIView {
set { }
get {
if let name = label.text {
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessiblity")
let unreadLabel = NSLocalizedString("unread", comment: "Unread label for accessibility")
return "\(name) \(unreadCountView.unreadCount) \(unreadLabel)"
}
else {

View File

@@ -31,7 +31,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
private lazy var dataSource = makeDataSource()
private let searchController = UISearchController(searchResultsController: nil)
var mainControllerIdentifer = MainControllerIdentifier.masterTimeline
var mainControllerIdentifier = MainControllerIdentifier.masterTimeline
weak var coordinator: SceneCoordinator!
var undoableCommands = [UndoableCommand]()

View File

@@ -15,7 +15,7 @@ import RSTree
import SafariServices
protocol MainControllerIdentifiable {
var mainControllerIdentifer: MainControllerIdentifier { get }
var mainControllerIdentifier: MainControllerIdentifier { get }
}
enum MainControllerIdentifier {
@@ -972,7 +972,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, Logging {
func selectPrevUnread() {
// This should never happen, but I don't want to risk throwing us
// into an infinate loop searching for an unread that isn't there.
// into an infinite loop searching for an unread that isn't there.
if appDelegate.unreadCount < 1 {
return
}
@@ -993,7 +993,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, Logging {
func selectNextUnread() {
// This should never happen, but I don't want to risk throwing us
// into an infinate loop searching for an unread that isn't there.
// into an infinite loop searching for an unread that isn't there.
if appDelegate.unreadCount < 1 {
return
}
@@ -1388,9 +1388,9 @@ extension SceneCoordinator: UINavigationControllerDelegate {
defer {
if let mainController = viewController as? MainControllerIdentifiable {
lastMainControllerToAppear = mainController.mainControllerIdentifer
lastMainControllerToAppear = mainController.mainControllerIdentifier
} else if let mainController = (viewController as? UINavigationController)?.topViewController as? MainControllerIdentifiable {
lastMainControllerToAppear = mainController.mainControllerIdentifer
lastMainControllerToAppear = mainController.mainControllerIdentifier
}
}