From 51ad68167781c742e08be61400a8d5bf3fd74bd8 Mon Sep 17 00:00:00 2001 From: Tai Zhou <21986946+Tai-Zhou@users.noreply.github.com> Date: Mon, 25 Jan 2021 12:28:58 +0800 Subject: [PATCH] Add Missing L10n for GPU Popup toolTip --- Modules/GPU/popup.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/GPU/popup.swift b/Modules/GPU/popup.swift index 94ff42ce..84080bc4 100644 --- a/Modules/GPU/popup.swift +++ b/Modules/GPU/popup.swift @@ -122,7 +122,7 @@ private class GPUView: NSStackView { let stateView: NSView = NSView(frame: NSRect(x: width - 8, y: (view.frame.height-7)/2, width: 6, height: 6)) stateView.wantsLayer = true stateView.layer?.backgroundColor = (self.value.state ? NSColor.systemGreen : NSColor.systemRed).cgColor - stateView.toolTip = "GPU \(self.value.state ? "enabled" : "disabled")" + stateView.toolTip = LocalizedString("GPU \(self.value.state ? "enabled" : "disabled")") stateView.layer?.cornerRadius = 4 let details = LocalizedString("Details").uppercased() @@ -248,7 +248,7 @@ private class GPUView: NSStackView { if (self.window?.isVisible ?? false) { self.stateView?.layer?.backgroundColor = (gpu.state ? NSColor.systemGreen : NSColor.systemRed).cgColor - self.stateView?.toolTip = "GPU \(gpu.state ? "enabled" : "disabled")" + self.stateView?.toolTip = LocalizedString("GPU \(gpu.state ? "enabled" : "disabled")") self.addStats(id: "temperature", gpu.temperature) self.addStats(id: "utilization", gpu.utilization)