Skip to content

Commit 0342e4e

Browse files
committed
add changes to 0143-WebUI-Fix-Translation to integrate the missing
translation for the wind direction abbreviation from 6264dd7 (fixes #3072)
1 parent 83b3567 commit 0342e4e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

buildroot-external/patches/occu/0143-WebUI-Fix-Translation.patch

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
--- occu/WebUI/www/rega/esp/controls/weather_sensor.fn.orig
2+
+++ occu/WebUI/www/rega/esp/controls/weather_sensor.fn
3+
@@ -98,7 +98,7 @@
4+
if (bErrorWindNorth) {
5+
WriteLine("<br/><span "#errorWindNorth#">${stringTableWeatherWindDir}: </span><img src='/ise/img/help.png' alt='help' style='cursor: pointer; width:18px; height:18px; vertical-align:middle;' onclick=alert(translateKey('stringTableErrorWindNorthTrue'));> ");
6+
} else {
7+
- WriteLine("<br/><span "#errorWindNorth#">${stringTableWeatherWindDir}: </span><span class='CLASS02535A' style='color:white'>"#sValueh#" "#oActualWindDirection.Value().ToString(0)#oActualWindDirection.ValueUnit()#"</span>");
8+
+ WriteLine("<br/><span "#errorWindNorth#">${stringTableWeatherWindDir}: </span><span class='CLASS02535A j_translate' style='color:white'>${"#sValueh#"} "#oActualWindDirection.Value().ToString(0)#oActualWindDirection.ValueUnit()#"</span>");
9+
}
10+
}
11+
112
--- occu/WebUI/www/rega/esp/datapointconfigurator.fn.orig
213
+++ occu/WebUI/www/rega/esp/datapointconfigurator.fn
314
@@ -1643,16 +1643,20 @@

buildroot-external/patches/occu/0143-WebUI-Fix-Translation/occu/WebUI/www/rega/esp/controls/weather_sensor.fn

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function ::CreateWeatherSensor() {
9898
if (bErrorWindNorth) {
9999
WriteLine("<br/><span "#errorWindNorth#">${stringTableWeatherWindDir}: </span><img src='/ise/img/help.png' alt='help' style='cursor: pointer; width:18px; height:18px; vertical-align:middle;' onclick=alert(translateKey('stringTableErrorWindNorthTrue'));> ");
100100
} else {
101-
WriteLine("<br/><span "#errorWindNorth#">${stringTableWeatherWindDir}: </span><span class='CLASS02535A' style='color:white'>"#sValueh#" "#oActualWindDirection.Value().ToString(0)#oActualWindDirection.ValueUnit()#"</span>");
101+
WriteLine("<br/><span "#errorWindNorth#">${stringTableWeatherWindDir}: </span><span class='CLASS02535A j_translate' style='color:white'>${"#sValueh#"} "#oActualWindDirection.Value().ToString(0)#oActualWindDirection.ValueUnit()#"</span>");
102102
}
103103
}
104104

0 commit comments

Comments
 (0)