Make some strings localizable
This commit is contained in:
1 parent
48ed63b08c
commit
fd08aeb766
4 files changed
+6
-6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
@@ -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: "")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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: "")
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user