WxSim Online Forecast Display language translation

Gerard, thanks again for posting the modified code, I’m now trying to figure how to run it while waiting that Tom end Wx-Sim customization for my station.

I grabbed the latest Jordan files Version 1.51 - FINAL

To allow language translation I need to replace the file wsofd.php with Gerard supplied code modified to suit the language I need (Italian in my case)

I’m a little confused about the file wxtypedata.txt (see below) because is shorter than the one supplied by Gerard and the structure is a little strange, I think I must translate each word leaving unchanged -n, for example rain-d will be translated in pioggia-d, could somone of you confirm please ?

Thanks!

Mario

severe!tornado-d!tornado-n!Severe storm
showery or intermittent. Some thunder!showersstorms-d!showersstorms-n!Showers storms
thunder!thunderstorm-d!thunderstorm-n!Thunder storm
rain and sleet!rainsleet-d!rainsleet-n!Rain Sleet
freezing rain and snow!freezingrainsnow-d!freezingrainsnow-n!FrzgRn Snow
rain and snow!rainsnow-d!rainsnow-n!Rain and Snow
freezing rain!freezingrain!freezingrain!Freezing Rain
rain!rain-d!rain-n!Rain
mix!freezingrainsnow-d!freezingrainsnow-n!Mix
sleet!sleet-d!sleet-n!Sleet
snow!snow-d!snow-n!Snow
fog!fog-d!fog-n!Fog
wind chill down to -!verycold!verycold!Very Cold
heat index up to 1!hot!hot!Very Hot
precip!rainsnow-d!rainsnow-n!Precip
partly cloudy!partlycloudy-d!partlycloudy-n!Partly Cloudy
mostly cloudy!mostlycloudy-d!mostlycloudy-n!Mostly Cloudy
cloudy!cloudy-d!cloudy-n!Cloudy
overcast!cloudy-d!cloudy-n!Cloudy
partly sunny!partlysunny-d!partlysunny-n!Partly Sunny
mostly sunny!mostlysunny-d!mostlyclear-n!Mostly Sunny
mostly clear!mostlysunny-d!mostlyclear-n!Mostly Clear
sunny!sunny-d!clear-n!Sunny
clear!sunny-d!clear-n!Clear
fair!fair-d!fair-n!Fair
cloud!variableclouds-d!variableclouds-n!Variable Clouds