Update localizations again

This commit is contained in:
Damiano Galassi committed 2024-07-20 07:41:50 +02:00
1 parent 9b4651b346
commit 59a715f6d6
6 files changed
+14 -6

No files matched your search

+4 -2
View File
@@ -38,8 +38,10 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
let submenu = NSMenu()
for minutes in [1, 2, 5, 10, 15, 20, 30] {
let menuItem = NSMenuItem()
menuItem.title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") :
NSLocalizedString("\(minutes) minutes", comment: "Toolbar")
let title = minutes == 1 ? NSLocalizedString("1 minute", comment: "Toolbar") :
String(format: NSLocalizedString("%@ minutes", comment: "Toolbar"), "\(minutes)")
menuItem.title = title
menuItem.action = #selector(DocumentWindowController.addChaptersEvery(_:))
menuItem.tag = minutes
submenu.addItem(menuItem)
+1 -1
View File
@@ -65,7 +65,7 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
toolbar.delegate = toolbarDelegate
toolbar.allowsUserCustomization = true
toolbar.autosavesConfiguration = true
toolbar.displayMode = .iconOnly
toolbar.displayMode = .iconAndLabel
self.window?.toolbar = toolbar
table.registerForDraggedTypes([NSPasteboard.PasteboardType.fileURL, tablePasteboardType])