From 1b06090f72e3db7f6d3d66b1aac25f5851c5baf2 Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 6 Oct 2025 16:06:19 -0400 Subject: [PATCH] Remove terms that shouldnt be localized --- Modules/DankBar/Widgets/CpuMonitor.qml | 2 +- Modules/DankBar/Widgets/CpuTemperature.qml | 2 +- Modules/DankBar/Widgets/DiskUsage.qml | 2 +- Modules/DankBar/Widgets/GpuTemperature.qml | 2 +- Modules/DankBar/Widgets/RamMonitor.qml | 2 +- Modules/Lock/Keyboard.qml | 2 +- Modules/Settings/PersonalizationTab.qml | 6 +-- Modules/Settings/WeatherTab.qml | 4 +- translations/en.json | 42 ------------------- translations/template.json | 49 ---------------------- 10 files changed, 11 insertions(+), 102 deletions(-) diff --git a/Modules/DankBar/Widgets/CpuMonitor.qml b/Modules/DankBar/Widgets/CpuMonitor.qml index 43e25d14..1a6014a2 100644 --- a/Modules/DankBar/Widgets/CpuMonitor.qml +++ b/Modules/DankBar/Widgets/CpuMonitor.qml @@ -140,7 +140,7 @@ Rectangle { id: cpuBaseline font.pixelSize: Theme.fontSizeSmall font.weight: Font.Medium - text: qsTr("100%") + text: "100%" } width: root.minimumWidth ? Math.max(cpuBaseline.width, paintedWidth) : paintedWidth diff --git a/Modules/DankBar/Widgets/CpuTemperature.qml b/Modules/DankBar/Widgets/CpuTemperature.qml index 986ce37f..e1e0b588 100644 --- a/Modules/DankBar/Widgets/CpuTemperature.qml +++ b/Modules/DankBar/Widgets/CpuTemperature.qml @@ -140,7 +140,7 @@ Rectangle { id: tempBaseline font.pixelSize: Theme.fontSizeSmall font.weight: Font.Medium - text: qsTr("100°") + text: "100°" } width: root.minimumWidth ? Math.max(tempBaseline.width, paintedWidth) : paintedWidth diff --git a/Modules/DankBar/Widgets/DiskUsage.qml b/Modules/DankBar/Widgets/DiskUsage.qml index 4cb8bf4a..3172ff03 100644 --- a/Modules/DankBar/Widgets/DiskUsage.qml +++ b/Modules/DankBar/Widgets/DiskUsage.qml @@ -225,7 +225,7 @@ Rectangle { id: diskBaseline font.pixelSize: Theme.fontSizeSmall font.weight: Font.Medium - text: qsTr("100%") + text: "100%" } width: Math.max(diskBaseline.width, paintedWidth) diff --git a/Modules/DankBar/Widgets/GpuTemperature.qml b/Modules/DankBar/Widgets/GpuTemperature.qml index 5955147a..6f8eda12 100644 --- a/Modules/DankBar/Widgets/GpuTemperature.qml +++ b/Modules/DankBar/Widgets/GpuTemperature.qml @@ -207,7 +207,7 @@ Rectangle { id: gpuTempBaseline font.pixelSize: Theme.fontSizeSmall font.weight: Font.Medium - text: qsTr("100°") + text: "100°" } width: root.minimumWidth ? Math.max(gpuTempBaseline.width, paintedWidth) : paintedWidth diff --git a/Modules/DankBar/Widgets/RamMonitor.qml b/Modules/DankBar/Widgets/RamMonitor.qml index eab240cb..da4727a5 100644 --- a/Modules/DankBar/Widgets/RamMonitor.qml +++ b/Modules/DankBar/Widgets/RamMonitor.qml @@ -141,7 +141,7 @@ Rectangle { id: ramBaseline font.pixelSize: Theme.fontSizeSmall font.weight: Font.Medium - text: qsTr("100%") + text: "100%" } width: root.minimumWidth ? Math.max(ramBaseline.width, paintedWidth) : paintedWidth diff --git a/Modules/Lock/Keyboard.qml b/Modules/Lock/Keyboard.qml index 7afa8767..0eb6cacb 100644 --- a/Modules/Lock/Keyboard.qml +++ b/Modules/Lock/Keyboard.qml @@ -169,7 +169,7 @@ Rectangle { ], "row_4": [ { - text: qsTr("123"), + text: "123", symbol: 'ABC', width: 1.5 }, diff --git a/Modules/Settings/PersonalizationTab.qml b/Modules/Settings/PersonalizationTab.qml index b65379ce..1e8958af 100644 --- a/Modules/Settings/PersonalizationTab.qml +++ b/Modules/Settings/PersonalizationTab.qml @@ -768,7 +768,7 @@ Item { return SessionData.wallpaperCyclingTime } } - placeholderText: qsTr("00:00") + placeholderText: "00:00" maximumLength: 5 topPadding: Theme.spacingS bottomPadding: Theme.spacingS @@ -1346,7 +1346,7 @@ Item { width: 120 height: 40 text: SessionData.latitude.toString() - placeholderText: qsTr("0.0") + placeholderText: "0.0" onTextChanged: { const lat = parseFloat(text) || 0.0 if (lat >= -90 && lat <= 90) { @@ -1369,7 +1369,7 @@ Item { width: 120 height: 40 text: SessionData.longitude.toString() - placeholderText: qsTr("0.0") + placeholderText: "0.0" onTextChanged: { const lon = parseFloat(text) || 0.0 if (lon >= -180 && lon <= 180) { diff --git a/Modules/Settings/WeatherTab.qml b/Modules/Settings/WeatherTab.qml index ffc8b63e..15593140 100644 --- a/Modules/Settings/WeatherTab.qml +++ b/Modules/Settings/WeatherTab.qml @@ -257,7 +257,7 @@ Item { id: latitudeInput width: parent.width height: 48 - placeholderText: qsTr("40.7128") + placeholderText: "40.7128" backgroundColor: Theme.surfaceVariant normalBorderColor: Theme.primarySelected focusedBorderColor: Theme.primary @@ -308,7 +308,7 @@ Item { id: longitudeInput width: parent.width height: 48 - placeholderText: qsTr("-74.0060") + placeholderText: "-74.0060" backgroundColor: Theme.surfaceVariant normalBorderColor: Theme.primarySelected focusedBorderColor: Theme.primary diff --git a/translations/en.json b/translations/en.json index 30c53b95..9b299111 100644 --- a/translations/en.json +++ b/translations/en.json @@ -29,42 +29,6 @@ "reference": "Modules/Settings/AboutTab.qml:440", "comment": "" }, - { - "term": "-74.0060", - "context": "Modules/Settings/WeatherTab.qml:311", - "reference": "Modules/Settings/WeatherTab.qml:311", - "comment": "" - }, - { - "term": "0.0", - "context": "Modules/Settings/PersonalizationTab.qml:1349", - "reference": "Modules/Settings/PersonalizationTab.qml:1349, Modules/Settings/PersonalizationTab.qml:1372", - "comment": "" - }, - { - "term": "00:00", - "context": "Modules/Settings/PersonalizationTab.qml:771", - "reference": "Modules/Settings/PersonalizationTab.qml:771", - "comment": "" - }, - { - "term": "100%", - "context": "Modules/DankBar/Widgets/RamMonitor.qml:144", - "reference": "Modules/DankBar/Widgets/RamMonitor.qml:144, Modules/DankBar/Widgets/DiskUsage.qml:228, Modules/DankBar/Widgets/CpuMonitor.qml:143", - "comment": "" - }, - { - "term": "100°", - "context": "Modules/DankBar/Widgets/CpuTemperature.qml:143", - "reference": "Modules/DankBar/Widgets/CpuTemperature.qml:143, Modules/DankBar/Widgets/GpuTemperature.qml:210", - "comment": "" - }, - { - "term": "123", - "context": "Modules/Lock/Keyboard.qml:172", - "reference": "Modules/Lock/Keyboard.qml:172", - "comment": "" - }, { "term": "24-Hour Format", "context": "Modules/Settings/TimeTab.qml:57", @@ -83,12 +47,6 @@ "reference": "Modules/Settings/PluginsTab.qml:992", "comment": "" }, - { - "term": "40.7128", - "context": "Modules/Settings/WeatherTab.qml:260", - "reference": "Modules/Settings/WeatherTab.qml:260", - "comment": "" - }, { "term": "7-Day Forecast", "context": "Modules/DankDash/WeatherTab.qml:525", diff --git a/translations/template.json b/translations/template.json index 1c158fb8..b9f9a2bb 100644 --- a/translations/template.json +++ b/translations/template.json @@ -34,48 +34,6 @@ "reference": "", "comment": "" }, - { - "term": "-74.0060", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, - { - "term": "0.0", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, - { - "term": "00:00", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, - { - "term": "100%", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, - { - "term": "100°", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, - { - "term": "123", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, { "term": "24-Hour Format", "translation": "", @@ -97,13 +55,6 @@ "reference": "", "comment": "" }, - { - "term": "40.7128", - "translation": "", - "context": "", - "reference": "", - "comment": "" - }, { "term": "7-Day Forecast", "translation": "",