From a92b037c24e73dca3d2eac181ec7a9632cc9a164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Buczek?= Date: Fri, 8 Sep 2023 19:25:13 +0200 Subject: [PATCH] Fix #8041: Remove bookmark count --- .../Menu/Bookmarks/BookmarksViewController.swift | 8 -------- Sources/BraveStrings/BraveStrings.swift | 2 -- 2 files changed, 10 deletions(-) diff --git a/Sources/Brave/Frontend/Browser/Toolbars/BottomToolbar/Menu/Bookmarks/BookmarksViewController.swift b/Sources/Brave/Frontend/Browser/Toolbars/BottomToolbar/Menu/Bookmarks/BookmarksViewController.swift index 762efeb19cb..bf8a4c3fbaf 100644 --- a/Sources/Brave/Frontend/Browser/Toolbars/BottomToolbar/Menu/Bookmarks/BookmarksViewController.swift +++ b/Sources/Brave/Frontend/Browser/Toolbars/BottomToolbar/Menu/Bookmarks/BookmarksViewController.swift @@ -455,14 +455,6 @@ class BookmarksViewController: SiteTableViewController, ToolbarUrlActionsProtoco cell.textLabel?.font = UIFont.boldSystemFont(ofSize: fontSize) cell.accessoryType = .disclosureIndicator cell.setRightBadge(nil) - - // 0 bookmarks - // 1 bookmark - // 2 bookmarks - // ... - let bookmarksCount = item.children?.filter({ !$0.isFolder }).count ?? 0 - cell.detailTextLabel?.text = String(format: bookmarksCount == 1 ? Strings.bookmarkSingleCount : Strings.bookmarkMultipleCount, bookmarksCount) - cell.detailTextLabel?.font = UIFont.systemFont(ofSize: fontSize) } } diff --git a/Sources/BraveStrings/BraveStrings.swift b/Sources/BraveStrings/BraveStrings.swift index 2bdaeef60b7..3025a023327 100644 --- a/Sources/BraveStrings/BraveStrings.swift +++ b/Sources/BraveStrings/BraveStrings.swift @@ -1174,8 +1174,6 @@ extension Strings { public static let favoritesRootLevelCellTitle = NSLocalizedString("FavoritesRootLevelCellTitle", tableName: "BraveShared", bundle: .module, value: "Favorites", comment: "Title for favorites cell") public static let addFolderActionCellTitle = NSLocalizedString("AddFolderActionCellTitle", tableName: "BraveShared", bundle: .module, value: "New folder", comment: "Cell title for add folder action") public static let editBookmarkTableLocationHeader = NSLocalizedString("EditBookmarkTableLocationHeader", tableName: "BraveShared", bundle: .module, value: "Location", comment: "Header title for bookmark save location") - public static let bookmarkSingleCount = NSLocalizedString("BookmarkSingleCount", tableName: "BraveShared", bundle: .module, value: "%d bookmark", comment: "Title for a single bookmark (Do not localize %d, it is a placeholder for a number. IE: 1 bookmark)") - public static let bookmarkMultipleCount = NSLocalizedString("BookmarkMultipleCount", tableName: "BraveShared", bundle: .module, value: "%d bookmarks", comment: "Title for a single bookmark (Do not localize %d, it is a placeholder for a number. IE: 10 bookmarks") public static let newBookmarkTitle = NSLocalizedString("NewBookmarkTitle", tableName: "BraveShared", bundle: .module, value: "New bookmark", comment: "Title for adding new bookmark") public static let newFolderTitle = NSLocalizedString("NewFolderTitle", tableName: "BraveShared", bundle: .module, value: "New folder", comment: "Title for adding new folder") public static let editBookmarkTitle = NSLocalizedString("EditBookmarkTitle", tableName: "BraveShared", bundle: .module, value: "Edit bookmark", comment: "Title for editing a bookmark")