- add missing words to the external translations

- small update in the sensors list
This commit is contained in:
Serhiy Mytrovtsiy
2020-11-14 15:09:02 +01:00
parent d3ca8232ce
commit 133eff398f
10 changed files with 28 additions and 13 deletions

View File

@@ -42,9 +42,9 @@ internal class SensorsReader: Reader<[Sensor_t]> {
}
}
// Remove the temperature sensor, if SMC report more that 110 C degree.
for (index, sensor) in list.enumerated() {
if let newValue = self.smc.pointee.getValue(sensor.key) {
// Remove the temperature sensor, if SMC report more that 110 C degree.
if sensor.type == SensorType.Temperature.rawValue && newValue > 110 {
list.remove(at: index)
continue

View File

@@ -27,7 +27,6 @@ enum SensorType: SensorType_t {
}
struct Sensor_t {
let store: Store = Store()
var key: String
var name: String
@@ -82,7 +81,7 @@ struct Sensor_t {
var state: Bool {
get {
return store.bool(key: "sensor_\(self.key)", defaultValue: false)
return Store.shared.bool(key: "sensor_\(self.key)", defaultValue: false)
}
}
}
@@ -102,7 +101,6 @@ let SensorsList: [Sensor_t] = [
Sensor_t(key: "TC0D", name: "CPU diode", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC0E", name: "CPU diode virtual", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC0F", name: "CPU diode filtered", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC0C", name: "CPU core", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC0H", name: "CPU heatsink", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC0P", name: "CPU proximity", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TCAD", name: "CPU package", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
@@ -118,15 +116,16 @@ let SensorsList: [Sensor_t] = [
Sensor_t(key: "TC8c", name: "CPU core 9", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC9c", name: "CPU core 10", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC1C", name: "CPU core 1", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC2C", name: "CPU core 2", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC3C", name: "CPU core 3", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC4C", name: "CPU core 4", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC5C", name: "CPU core 5", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC6C", name: "CPU core 6", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC7C", name: "CPU core 7", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC8C", name: "CPU core 8", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC9C", name: "CPU core 9", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC0C", name: "CPU core 1", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC1C", name: "CPU core 2", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC2C", name: "CPU core 3", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC3C", name: "CPU core 4", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC4C", name: "CPU core 5", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC5C", name: "CPU core 6", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC6C", name: "CPU core 7", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC7C", name: "CPU core 8", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC8C", name: "CPU core 9", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TC9C", name: "CPU core 10", group: SensorGroup.CPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TCGC", name: "GPU Intel Graphics", group: SensorGroup.GPU.rawValue, type: SensorType.Temperature.rawValue),
Sensor_t(key: "TG0D", name: "GPU diode", group: SensorGroup.GPU.rawValue, type: SensorType.Temperature.rawValue),

View File

@@ -133,6 +133,8 @@
"Click to copy mac address" = "Klicken Sie zum Kopieren der Mac-Adresse";
"No connection" = "Keine Verbindung";
"Network interface" = "Netzwerkschnittstelle";
"Total download" = "Völlig heruntergeladen";
"Total upload" = "Völlig hochgeladen";
// Battery
"Level" = "Ladezustand";

View File

@@ -130,6 +130,8 @@
"Click to copy mac address" = "Haga clic para copiar la dirección mac";
"No connection" = "Sin conexión";
"Network interface" = "Interfaz de red";
"Total download" = "Descarga total";
"Total upload" = "Carga total";
// Battery
"Level" = "Nivel";

View File

@@ -133,6 +133,8 @@
"Click to copy mac address" = "Cliquez pour copier l'adresse mac";
"No connection" = "Aucune connexion";
"Network interface" = "Interface réseau";
"Total download" = "Total download";
"Total upload" = "Total upload";
// Battery
"Level" = "Niveau";

View File

@@ -133,6 +133,8 @@
"Click to copy mac address" = "Mac 주소를 복사하려면 클릭하세요";
"No connection" = "연결되지 않음";
"Network interface" = "네트워크 인터페이스";
"Total download" = "총 다운로드";
"Total upload" = "총 업로드";
// Battery
"Level" = "잔량";

View File

@@ -133,6 +133,8 @@
"Click to copy mac address" = "Mac adresini kopyalamak için tıklayın";
"No connection" = "Bağlantı yok";
"Network interface" = "Ağ arayüzü";
"Total download" = "Tamamen indirildi";
"Total upload" = "Tamamen yüklendi";
// Battery
"Level" = "Doluluk";

View File

@@ -133,6 +133,8 @@
"Click to copy mac address" = "Nhấp để copy MAC";
"No connection" = "Không có kết nối";
"Network interface" = "Giao diện mạng";
"Total download" = "Tổng tải";
"Total upload" = "Tổng upload";
// Battery
"Level" = "Dung lượng Pin";

View File

@@ -133,6 +133,8 @@
"Click to copy mac address" = "点击拷贝MAC地址";
"No connection" = "无连接";
"Network interface" = "网络接口";
"Total download" = "共下载";
"Total upload" = "总上传";
// Battery
"Level" = "电量";

View File

@@ -129,6 +129,8 @@
"Click to copy mac address" = "點擊複製 MAC 位址";
"No connection" = "無連線";
"Network interface" = "網路介面";
"Total download" = "共下載";
"Total upload" = "共上傳";
// Battery
"Level" = "電量";