@@ -105,7 +105,7 @@ class SidebarViewController: UICollectionViewController, NSFetchedResultsControl
105
105
} ,
106
106
menu: UIMenu ( children: [
107
107
UIAction (
108
- title: " sidebar_view.navigation.button.close " . localized ,
108
+ title: LocalString . sidebar_view_navigation_button_close ,
109
109
image: UIImage ( systemName: " xmark.square " ) ,
110
110
attributes: . destructive
111
111
) { [ unowned self] _ in
@@ -114,7 +114,7 @@ class SidebarViewController: UICollectionViewController, NSFetchedResultsControl
114
114
navigationViewModel. deleteTab ( tabID: tabID)
115
115
} ,
116
116
UIAction (
117
- title: " sidebar_view.navigation.button.close_all " . localized ,
117
+ title: LocalString . sidebar_view_navigation_button_close_all ,
118
118
image: UIImage ( systemName: " xmark.square.fill " ) ,
119
119
attributes: . destructive
120
120
) { [ unowned self] _ in
@@ -196,7 +196,7 @@ class SidebarViewController: UICollectionViewController, NSFetchedResultsControl
196
196
if case let . tab( objectID) = item,
197
197
let tab = try ? Database . shared. viewContext. existingObject ( with: objectID) as? Tab {
198
198
var config = cell. defaultContentConfiguration ( )
199
- config. text = tab. title ?? " common.tab.menu.new_tab " . localized
199
+ config. text = tab. title ?? LocalString . common_tab_menu_new_tab
200
200
if let zimFile = tab. zimFile, let category = Category ( rawValue: zimFile. category) {
201
201
config. textProperties. numberOfLines = 1
202
202
if let imgData = zimFile. faviconData {
@@ -224,11 +224,11 @@ class SidebarViewController: UICollectionViewController, NSFetchedResultsControl
224
224
switch section {
225
225
case . tabs:
226
226
var config = UIListContentConfiguration . sidebarHeader ( )
227
- config. text = " common.tab.navigation.title " . localized
227
+ config. text = LocalString . common_tab_navigation_title
228
228
headerView. contentConfiguration = config
229
229
case . library:
230
230
var config = UIListContentConfiguration . sidebarHeader ( )
231
- config. text = " common.tab.menu.library " . localized
231
+ config. text = LocalString . common_tab_menu_library
232
232
headerView. contentConfiguration = config
233
233
default :
234
234
headerView. contentConfiguration = nil
@@ -239,7 +239,7 @@ class SidebarViewController: UICollectionViewController, NSFetchedResultsControl
239
239
guard let navigationViewModel,
240
240
let item = dataSource. itemIdentifier ( for: indexPath) ,
241
241
case let . tab( tabID) = item else { return nil }
242
- let title = " sidebar_view.navigation.button.close " . localized
242
+ let title = LocalString . sidebar_view_navigation_button_close
243
243
let action = UIContextualAction ( style: . destructive,
244
244
title: title) { [ weak navigationViewModel] _, _, _ in
245
245
navigationViewModel? . deleteTab ( tabID: tabID)
0 commit comments