Put this in the top of ur web-page where the weather data will be outputted instead of .html the page must be .php at the end !!!!
include_once ("weather.php"); ?>
// By editing the weather.php u can now translate the Description
Just edit the "replace" values in this function
function translateEN_DE(&$satz)
{
//Translate
$search = array('Light', 'Rain','Early','AM','Showers','Partly','Cloudy','Mostly','Sunny');
$replace = array(" Leichte(r) ", " Regen ","Morgens",'Vormittags','Regenfälle','Teilweise','Bewölkt','Meistens','Sonnig');
$satz = str_replace($search, $replace, $satz);
return($satz) ;
}
then u can output the actual weather and the forecast by typing for example
or for example
Syntax: $day[DAYNUMBER][Value]
Possible values for the day array:
0 =>sunrise
1 => sunset
2 => Temperature Day
3 => Description for Day
4 => Icon Day
5 => Temperature Night
6 => Description NightNacht
7 => Icon Night
Daynumber starts with ZERO
The actual data (Not the forecast for today)
Syntax $act[Value]
Possible values for $act are:
0 =>temperature
1 => description
2 => Icon
/