WxSim Online Forecast Display language translation

this script is not so impressive, I could start with the help of Jardan. Jordan thanks for your help. So in the script there is a translation of the daynames and the text. There are not so many words used in the forecast. with trial and many errors I could figure out the right ranking of the translation, because our Dutch language is “so nice”. The most words are translated now. And with the help of php, nobody can see the mass I made with this translation, I am not a programmer, I like to show the things on the right way. so this is a part of Jordan wdsofd file with some adaptations:
Jordan thanks for your help and I had no problems to pay for the donation.

$kcounter = 0;
for ($k=0; $k<count($castpd); $k++) {

$spltcln = explode(“:”, $castpd[$k]);
$pdname = str_replace(’ night’, ’ Night’, $spltcln[0]);
$pdname = str_replace(’ afternoon’, ’ Afternoon’, $spltcln[0]);
$pdverb = str_replace(“\n”, “”, $spltcln[1]);

$pdverb = str_replace(‘Cloudy in the morning’, ‘Bewolkt in de morgen’, $pdverb);
$pdverb = str_replace(‘becoming’, 'overgaand in ', $pdverb);
$pdverb = str_replace(‘dense overcast’, ‘dichte bewolking’, $pdverb);
$pdverb = str_replace(‘then’, ‘dan’, $pdverb);
$pdverb = str_replace(‘the’, ‘de’, $pdverb);
$pdverb = str_replace(‘afternoon’, ‘middag’, $pdverb);
$pdverb = str_replace(‘cloudy’, ‘bewolkt’, $pdverb);
$pdverb = str_replace(‘Patchy’, ‘Gedeeltelijk’, $pdverb);
$pdverb = str_replace(‘slight’, ‘kleine’, $pdverb);
$pdverb = str_replace(‘light’, ‘lichte’, $pdverb);
$pdverb = str_replace(‘fog’, ‘mist’, $pdverb);
$pdverb = str_replace(‘Partly’, ‘Gedeeltelijk’, $pdverb);
$pdverb = str_replace(‘to’, ‘tot’, $pdverb);
$pdverb = str_replace(‘gusting’, ‘windvlagen’, $pdverb);
$pdverb = str_replace(‘mostly’, ‘overwegend’, $pdverb);
$pdverb = str_replace(‘after’, ‘na’, $pdverb);
$pdverb = str_replace(‘midnight’, ‘middernacht’, $pdverb);
$pdverb = str_replace(‘morning’, ‘morgen’, $pdverb);
$pdverb = str_replace(‘Mostly’, ‘Overwegend’, $pdverb);
$pdverb = str_replace(‘partly’, ‘gedeeltelijk’, $pdverb);
$pdverb = str_replace(‘Light’, ‘Lichte’, $pdverb);
$pdverb = str_replace(‘moderate’, ‘matige’, $pdverb);
$pdverb = str_replace(‘evening’, ‘avond’, $pdverb);
$pdverb = str_replace(‘Dense’, ‘Dichte’, $pdverb);
$pdverb = str_replace(‘overcast’, ‘bewolking’, $pdverb);
$pdverb = str_replace(‘Moderate’, ‘Matige’, $pdverb);
$pdverb = str_replace(‘dense’, ‘dichte’, $pdverb);
$pdverb = str_replace(‘sunny’, ‘zonnig’, $pdverb);
$pdverb = str_replace(‘Rain likely’, ‘Grote kans op regen’, $pdverb);
$pdverb = str_replace(‘rain’, ‘regen’, $pdverb);
$pdverb = str_replace(‘A’, ‘Een’, $pdverb);
$pdverb = str_replace(‘chance of’, ‘kans op’, $pdverb);
$pdverb = str_replace(‘High’, ‘Maximum:’, $pdverb);
$pdverb = str_replace(‘Low’, ‘Minimum :’, $pdverb);
$pdverb = str_replace(‘but’, ‘maar’, $pdverb);
$pdverb = str_replace(‘temperatures falling’, ‘temperatuur daalt’, $pdverb);
$pdverb = str_replace(‘temperatures rising’, ‘temperatuur stijgt’, $pdverb);
$pdverb = str_replace(‘north’, ‘noord’, $pdverb);
$pdverb = str_replace(‘nordeast’, ‘noordoost’, $pdverb);
$pdverb = str_replace(‘east-’, ‘oost-’, $pdverb);
$pdverb = str_replace('down ', 'daalt ', $pdverb);
$pdverb = str_replace('or ', 'of ', $pdverb);
$pdverb = str_replace('east ', 'oost ', $pdverb);
$pdverb = str_replace(‘southeast’, ‘zuidoost’, $pdverb);
$pdverb = str_replace(‘southwest’, ‘zuidwest’, $pdverb);
$pdverb = str_replace('south ', 'zuid ', $pdverb);
$pdverb = str_replace(‘south-’, ‘zuid-’, $pdverb);
$pdverb = str_replace(‘around’, ‘rond’, $pdverb);
$pdverb = str_replace(‘kph’, ‘km/uur’, $pdverb);
$pdverb = str_replace(‘Chance of precipitation’, ‘Kans op neerslag’, $pdverb);
$pdverb = str_replace(‘near’, ‘bijna’, $pdverb);
$pdverb = str_replace(‘percent’, ‘procent’, $pdverb);
$pdverb = str_replace(‘less than’, ‘minder dan’, $pdverb);
$pdverb = str_replace(‘snow’, ‘sneeuw’, $pdverb);
$pdverb = str_replace(‘Precipitation (liquid equivalent)’, ‘Neerslag (gesmolten)’, $pdverb);
$pdverb = str_replace(‘between’, ‘tussen’, $pdverb);
$pdverb = str_replace(‘and’, ‘en’, $pdverb);
$pdverb = str_replace(‘Precipitation’, ‘Neerslag’, $pdverb);
$pdverb = str_replace(‘accumulation expected’, ‘ophoping verwacht’, $pdverb);
$pdverb = str_replace(‘Little’, ‘Weinig’, $pdverb);
$pdverb = str_replace('no ', 'geen ', $pdverb);
$pdverb = str_replace('snow ', 'sneeuw ', $pdverb);
$pdverb = str_replace(‘Snow accumulation’, 'Sneeuw ophoping ', $pdverb);
$pdverb = str_replace(‘about’, ‘ongeveer’, $pdverb);
$pdverb = str_replace(‘one’, ‘1’, $pdverb);
$pdverb = str_replace(‘overgaen’, ‘overgaand’, $pdverb);
$pdverb = str_replace(‘soudoost’, ‘zuidoost’, $pdverb);
$pdverb = str_replace(‘showery of intermittent’, ‘afwisselend droog met buien’, $pdverb);
$pdverb = str_replace('No ', 'Geen ', $pdverb);
$pdverb = str_replace('Fair ', 'Bijna geen bewolking ', $pdverb);
$pdverb = str_replace(‘Cloudy’, ‘Bewolkt’, $pdverb);
$pdverb = str_replace(‘calm’, ‘kalm’, $pdverb);
$pdverb = str_replace(‘Clear’, ‘Helder’, $pdverb);
$pdverb = str_replace(‘clear’, ‘helder’, $pdverb);
$pdverb = str_replace(‘Sunny’, ‘Zonnig’, $pdverb);
$pdverb = str_replace(‘dan a’, ‘dan een’, $pdverb);
$pdverb = str_replace(‘ice’, ‘ijs’, $pdverb);
$pdverb = str_replace(‘freezing’, ‘bevriezende’, $pdverb);
$pdverb = str_replace(‘sleet’, ‘natte sneeuw’, $pdverb);
$pdverb = str_replace(‘a mix of’, ‘een mix van’, $pdverb);
$pdverb = str_replace(‘if any’, ‘tot geen’, $pdverb);
$pdverb = str_replace(‘on ground’, ‘op de grond’, $pdverb);
$pdverb = str_replace(‘patchy’, ‘gedeeltelijk’, $pdverb);
$pdverb = str_replace(‘Thunderstotrms likely, some possibly severe.’, ‘Kans op (zware) onweersbuien.’, $pdverb);
$pdverb = str_replace(‘Some thunder possible.’, 'Kans op onweer. ', $pdverb);
$pdverb = str_replace(‘Some thunderstotrms likely’, 'Kans op onweersbuien ', $pdverb);

$lwrpdvb = strtolower($pdverb);

TRANSLATION DAYS IN DUTCH

WX-SIM Online Forecast Display

VERSION 1.12, revision A

Author: Jordan Gerth

$pdname = str_replace(‘Sunday’, ‘Zondag’, $pdname);
$pdname = str_replace(‘Monday’, ‘Maandag’, $pdname);
$pdname = str_replace(‘Tuesday’, ‘Dinsdag’, $pdname);
$pdname = str_replace(‘Wednesday’, ‘Woensdag’, $pdname);
$pdname = str_replace(‘Thursday’, ‘Donderdag’, $pdname);
$pdname = str_replace(‘Friday’, ‘Vrijdag’, $pdname);
$pdname = str_replace(‘Saturday’, ‘Zaterdag’, $pdname);
$pdname = str_replace(‘Today’, ‘Vandaag’, $pdname);
$pdname = str_replace(‘Tonight’, ‘Vannacht’, $pdname);
$pdname = str_replace(‘afternoon’, ‘vanmiddag’, $pdname);
$pdname = str_replace(‘night’, ‘nacht’, $pdname);

if (strlen($pdname) < 2) {
break;
}

have fun with the Dutch language. This is all I can do for you, I am too busy with my job.

gerard