summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'javascript')
-rw-r--r--javascript/weather.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/javascript/weather.js b/javascript/weather.js
index 45dc104..cdf5b87 100644
--- a/javascript/weather.js
+++ b/javascript/weather.js
@@ -60,13 +60,13 @@ function WeatherInfo() {
htmltext += "<tr>";
for (var i=0;i<x.length;i++) {
- htmltext += "<th> Day: " + x[i].getElementsByTagName("temperature")[0].getAttribute('day') + "</th>";
+ htmltext += "<th> " + Lang[100] + x[i].getElementsByTagName("temperature")[0].getAttribute('day') + "</th>";
}
htmltext += "</tr>";
htmltext += "<tr>";
for (var i=0;i<x.length;i++) {
- htmltext += "<th> Night: " + x[i].getElementsByTagName("temperature")[0].getAttribute('night') + "</th>";
+ htmltext += "<th> " + Lang[101] + x[i].getElementsByTagName("temperature")[0].getAttribute('night') + "</th>";
}
htmltext += "</tr>";
@@ -83,7 +83,7 @@ function WeatherInfo() {
htmltext += "<tr>";
for (var i=0;i<x.length;i++) {
- htmltext += "<th> Wind: " + x[i].getElementsByTagName("windDirection")[0].getAttribute('code');
+ htmltext += "<th> " + Lang[102] + x[i].getElementsByTagName("windDirection")[0].getAttribute('code');
htmltext += "<br> " + x[i].getElementsByTagName("windSpeed")[0].getAttribute('mps') + " m/s </th>";
}
htmltext += "</tr>";
@@ -93,24 +93,24 @@ function WeatherInfo() {
var x=xmlDoc.getElementsByTagName("location");
htmltext += "<table class='center weather" + cssres[css_nr][Set_Res] + "'><tr>";
htmltext += "<th>";
- htmltext += "Location";
+ htmltext += Lang[103];
htmltext += "</th><th> : ";
htmltext += x[0].getElementsByTagName("name")[0].childNodes[0].nodeValue;
htmltext += "," + x[0].getElementsByTagName("country")[0].childNodes[0].nodeValue;
htmltext += "</th></tr><tr><th>";
- htmltext += "latitude";
+ htmltext += Lang[104];
htmltext += "</th><th> : ";
htmltext += x[0].getElementsByTagName("location")[0].getAttribute('latitude');
htmltext += "</th></tr><tr><th>";
- htmltext += "longitude";
+ htmltext += Lang[105];
htmltext += "</th><th> : ";
htmltext += x[0].getElementsByTagName("location")[0].getAttribute('longitude');
htmltext += "</th></tr><tr><th>";
- htmltext += "Sun rise";
+ htmltext += Lang[106];
htmltext += "</th><th> : ";
htmltext += Right(xmlDoc.getElementsByTagName("sun")[0].getAttribute('rise'),8);
htmltext += "</th></tr><tr><th>";
- htmltext += "Sun set";
+ htmltext += Lang[107];
htmltext += "</th><th> : ";
htmltext += Right(xmlDoc.getElementsByTagName("sun")[0].getAttribute('set'),8);
htmltext += "</th></tr></table>";