From fd08aeb766c283839223263545f8cbb74a8544c9 Mon Sep 17 00:00:00 2001 From: arnnalddo Date: Wed, 3 Jul 2024 11:20:56 +0200 Subject: [PATCH] Make some strings localizable --- Classes/ArtworkSelector.swift | 2 +- Classes/MP42FileAdditions.swift | 6 +++--- Classes/MetadataSearchController.swift | 2 +- Classes/PresetPrefsViewController.swift | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Classes/ArtworkSelector.swift b/Classes/ArtworkSelector.swift index 56cf40c..e26e517 100644 --- a/Classes/ArtworkSelector.swift +++ b/Classes/ArtworkSelector.swift @@ -305,7 +305,7 @@ final class ArtworkSelectorController: NSViewController, NSCollectionViewDataSou progress.isHidden = false switch state { case .downloading: - progressText.stringValue = NSLocalizedString("Downloading artworks", comment: "") + progressText.stringValue = NSLocalizedString("Downloading artworks…", comment: "") case .closing: break default: break } diff --git a/Classes/MP42FileAdditions.swift b/Classes/MP42FileAdditions.swift index 21d2861..1e25644 100644 --- a/Classes/MP42FileAdditions.swift +++ b/Classes/MP42FileAdditions.swift @@ -140,11 +140,11 @@ extension MP42AudioTrack { // Use channel count to determine track name if channelCount == 1 { - return "Mono Audio" + return NSLocalizedString("Mono Audio", comment: "") } else if channelCount == 2 { - return "Stereo Audio" + return NSLocalizedString("Stereo Audio", comment: "") } else { - return "Surround Audio" + return NSLocalizedString("Surround Audio", comment: "") } } } diff --git a/Classes/MetadataSearchController.swift b/Classes/MetadataSearchController.swift index 38bf8ee..f57bda0 100644 --- a/Classes/MetadataSearchController.swift +++ b/Classes/MetadataSearchController.swift @@ -339,7 +339,7 @@ final class MetadataSearchController: NSViewController, NSTableViewDataSource, N case .additionalSearch(let search, _, _): switch search { case .movieSeach: - progressText.stringValue = NSLocalizedString("Downloading additional movie metadata", comment: "") + progressText.stringValue = NSLocalizedString("Downloading additional movie metadata…", comment: "") case .tvSearch: progressText.stringValue = NSLocalizedString("Downloading additional TV metadata…", comment: "") } diff --git a/Classes/PresetPrefsViewController.swift b/Classes/PresetPrefsViewController.swift index 0ebf490..ff54afe 100644 --- a/Classes/PresetPrefsViewController.swift +++ b/Classes/PresetPrefsViewController.swift @@ -63,7 +63,7 @@ class PresetPrefsViewController: NSViewController, SectionsTableViewDataSource, func tableView(_ tableView: NSTableView, viewForHeaderInSection section: Int) -> NSView? { if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier("headerCell"), owner: self) as? NSTableCellView { - cell.textField?.stringValue = section == 0 ? "Metadata" : "Queue" + cell.textField?.stringValue = NSLocalizedString(section == 0 ? "Metadata" : "Queue", comment: "") cell.textField?.isSelectable = false cell.textField?.isEditable = false return cell