Skip to content

Commit

Permalink
lang: added translation for notifications menu
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Dec 23, 2023
1 parent ff878e2 commit 96f0076
Show file tree
Hide file tree
Showing 38 changed files with 429 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Modules/CPU/notifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,27 +86,27 @@ class Notifications: NotificationsWrapper {
let title = localizedString("CPU usage threshold")

if let threshold = Double(self.totalLoadLevel) {
let subtitle = localizedString("Total usage is", "\(Int((value.totalUsage)*100))%")
let subtitle = "\(localizedString("Total load")): \(Int((value.totalUsage)*100))%"
self.checkDouble(id: self.totalLoadID, value: value.totalUsage, threshold: threshold, title: title, subtitle: subtitle)
}

if let threshold = Double(self.systemLoadLevel) {
let subtitle = localizedString("System usage is", "\(Int((value.systemLoad)*100))%")
let subtitle = "\(localizedString("System load")): \(Int((value.systemLoad)*100))%"
self.checkDouble(id: self.systemLoadID, value: value.systemLoad, threshold: threshold, title: title, subtitle: subtitle)
}

if let threshold = Double(self.userLoadLevel) {
let subtitle = localizedString("User usage is", "\(Int((value.systemLoad)*100))%")
let subtitle = "\(localizedString("User load")): \(Int((value.userLoad)*100))%"
self.checkDouble(id: self.userLoadID, value: value.userLoad, threshold: threshold, title: title, subtitle: subtitle)
}

if let threshold = Double(self.eCoresLoadLevel), let usage = value.usageECores {
let subtitle = localizedString("Efficiency cores usage is", "\(Int((value.systemLoad)*100))%")
let subtitle = "\(localizedString("Efficiency cores load")): \(Int((usage)*100))%"
self.checkDouble(id: self.eCoresLoadID, value: usage, threshold: threshold, title: title, subtitle: subtitle)
}

if let threshold = Double(self.pCoresLoadLevel), let usage = value.usagePCores {
let subtitle = localizedString("Performance cores usage is", "\(Int((value.systemLoad)*100))%")
let subtitle = "\(localizedString("Performance cores load")): \(Int((usage)*100))%"
self.checkDouble(id: self.pCoresLoadID, value: usage, threshold: threshold, title: title, subtitle: subtitle)
}
}
Expand Down
6 changes: 3 additions & 3 deletions Modules/RAM/notifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Notifications: NotificationsWrapper {
self.swapSize = Store.shared.string(key: "\(self.module)_notifications_swap", defaultValue: self.swapSize)

self.addArrangedSubview(selectSettingsRow(
title: localizedString("Total usage"),
title: localizedString("Usage"),
action: #selector(self.changeTotalUsage),
items: notificationLevels,
selected: self.totalUsageLevel
Expand Down Expand Up @@ -106,14 +106,14 @@ class Notifications: NotificationsWrapper {
value: Double(value.pressureLevel.rawValue),
threshold: Double(threshold.rawValue),
title: title,
subtitle: localizedString("RAM pressure is", thresholdPair.key)
subtitle: "\(localizedString("Memory pressure")): \(thresholdPair.key)"
)
}
}

if let threshold = Double(self.swapSize) {
let value = Units(bytes: Int64(value.swap.used))
let subtitle = localizedString("RAM swap size is", value.getReadableMemory())
let subtitle = "\(localizedString("Swap size")): \(value.getReadableMemory())"
self.checkDouble(id: self.freeID, value: value.megabytes, threshold: threshold, title: title, subtitle: subtitle)
}
}
Expand Down
2 changes: 1 addition & 1 deletion SMC/Helper/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleName</key>
<string>eu.exelban.Stats.SMC.Helper</string>
<key>CFBundleShortVersionString</key>
<string>1.0.1</string>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>SMAuthorizedClients</key>
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/bg.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Turn off";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Настройки на Stats";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Cluster grouping";
"Efficiency cores color" = "Efficiency cores color";
"Performance cores color" = "Performance cores color";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "Показване на графична карта";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Wired color";
"Compressed color" = "Цвят на компресираната памет";
"Free color" = "Цвят на свободната памет";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Показване на преносими дискове";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Fan value";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Качване";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/ca.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Turn off";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Stats Setup";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Cluster grouping";
"Efficiency cores color" = "Efficiency cores color";
"Performance cores color" = "Performance cores color";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU a mostrar";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Wired color";
"Compressed color" = "Compressed color";
"Free color" = "Free color";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Mostra els discs extraïbles";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Fan value";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Carregant";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/cs.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Turn off";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Nastavení Stats";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Seskupení klastrů";
"Efficiency cores color" = "Efficiency cores color";
"Performance cores color" = "Performance cores color";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU k zobrazení";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Barva pevné paměti";
"Compressed color" = "Barva kompresované paměti";
"Free color" = "Barva volné paměti";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Zobrazovat vyměnitelné disky";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Hodnota ventilátoru";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Nahrávání";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/da.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Navn";
"Format" = "Format";
"Turn off" = "Sluk";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Stats opsætning";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Grupper efter type";
"Efficiency cores color" = "Efficiency kerner farve";
"Performance cores color" = "Performance kerner farve";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU der vises";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Brugt farve";
"Compressed color" = "Komprimeret farve";
"Free color" = "Fri farve";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Vis eksterne diske";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Blæserværdi";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "Du er ved at slukke for blæseren. Dette er ikke en anbefalet handling, da det kan skade din Mac. Er du sikker på du vil fortsætte?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Upload";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Ausschalten";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Stats einrichten";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Clustergruppierung";
"Efficiency cores color" = "Efficiency Cores Farbe";
"Performance cores color" = "Performance Cores Farbe";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU auswählen";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Reserviert Farbe";
"Compressed color" = "Komprimiert Farbe";
"Free color" = "Frei Farbe";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Wechseldatenträger anzeigen";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Lüftergeschwindigkeitswert";
"Turn off fan" = "Lüfter ausschalten";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "Sie sind dabei den Lüfter auszuschalten. Dies kann den Mac beschädigen und wird daher nicht empfohlen. Möchten Sie wirklich fortfahren?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Upload";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/el.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Turn off";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Εγκατάσταση Stats";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Cluster grouping";
"Efficiency cores color" = "Efficiency cores color";
"Performance cores color" = "Performance cores color";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU προς εμφάνιση";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Χρώμα Δεσμευμένης";
"Compressed color" = "Χρώμα Συμπίεσης";
"Free color" = "Χρώμα Ελεύθερου";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Εμφάνιση αφαιρούμενων δίσκων";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Fan value";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Μεταφόρτωση";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Turn off";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Stats Setup";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Cluster grouping";
"Efficiency cores color" = "Efficiency cores color";
"Performance cores color" = "Performance cores color";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU to show";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Wired color";
"Compressed color" = "Compressed color";
"Free color" = "Free color";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Show removable disks";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Fan value";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Upload";
Expand Down
12 changes: 12 additions & 0 deletions Stats/Supporting Files/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
"Name" = "Name";
"Format" = "Format";
"Turn off" = "Turn off";
"Warning" = "Warning";
"Critical" = "Critical";
"Usage" = "Usage";

// Setup
"Stats Setup" = "Configuración de Stats";
Expand Down Expand Up @@ -230,6 +233,11 @@
"Cluster grouping" = "Agrupación de clústeres";
"Efficiency cores color" = "Color de núcleos de eficiencia";
"Performance cores color" = "Color de núcleos de rendimiento";
"Total load" = "Total load";
"System load" = "System load";
"User load" = "User load";
"Efficiency cores load" = "Efficiency cores load";
"Performance cores load" = "Performance cores load";

// GPU
"GPU to show" = "GPU a mostrar";
Expand Down Expand Up @@ -269,6 +277,9 @@
"Wired color" = "Wired color";
"Compressed color" = "Compressed color";
"Free color" = "Free color";
"Free memory (less than)" = "Free memory (less than)";
"Swap size" = "Swap size";
"Free RAM is" = "Free RAM is %0";

// Disk
"Show removable disks" = "Mostrar los discos extraíbles";
Expand Down Expand Up @@ -299,6 +310,7 @@
"Fan value" = "Fan value";
"Turn off fan" = "Turn off fan";
"You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?" = "You are going to turn off the fan. This is not recommended action that can damage your mac, are you sure you want to do that?";
"Sensor threshold" = "Sensor threshold";

// Network
"Uploading" = "Carga";
Expand Down
Loading

0 comments on commit 96f0076

Please sign in to comment.