rh205
December 30, 2011, 1:06am
1
Hi,
I have noticed that on pages which contain forecasts it always say ‘chance rain’ instead of ‘chance of rain’.
The main forecast pages are at:
http://www.gosportweather.co.uk/wuforecast.php
and
http://www.gosportweather.co.uk/wxforecast.php
Which file is causing this problem and how do I correct it?
ktrue
December 30, 2011, 2:37am
3
For the users of WU-forecast.php with the World template, the easiest way is to add
langlookup|Chance rain|Chance of rain|
to the language-en.txt file just above the
conditions|end||
line.
WU-forecast will use the following words to describe the icon condition when the text in the forecast period exceds 4 words in length. The words used are based on the icon description itself, and not the text from the forecast.
langlookup|Chance flurries|Chance flurries|
langlookup|Chance rain|Chance rain|
langlookup|Chance sleet|Chance sleet|
langlookup|Chance snow|Chance snow|
langlookup|Chance thunderstorms|Chance thunderstorms|
langlookup|Clear|Clear|
langlookup|Cloudy|Cloudy|
langlookup|Flurries|Flurries|
langlookup|Fog|Fog|
langlookup|Hazy|Hazy|
langlookup|Mostly cloudy|Mostly cloudy|
langlookup|Partly cloudy|Partly cloudy|
langlookup|Mostly sunny|Mostly sunny|
langlookup|Rain|Rain|
langlookup|Sleet|Sleet|
langlookup|Snow|Snow|
langlookup|Sunny|Sunny|
langlookup|Thunderstorms|Thunderstorms|
and all of these can be added above the
conditions|end||
marker … change the third field to be the value you want displayed, like
langlookup|Chance flurries|Chance of flurries|
langlookup|Chance rain|Chance of rain|
langlookup|Chance sleet|Chance of sleet|
langlookup|Chance snow|Chance of snow|
langlookup|Chance thunderstorms|Chance of thunderstorms|
langlookup|Clear|Clear|
langlookup|Cloudy|Cloudy|
langlookup|Flurries|Flurries|
langlookup|Fog|Fog|
langlookup|Hazy|Hazy|
langlookup|Mostly cloudy|Mostly cloudy|
langlookup|Partly cloudy|Partly cloudy|
langlookup|Mostly sunny|Mostly sunny|
langlookup|Rain|Rain|
langlookup|Sleet|Sleet|
langlookup|Snow|Snow|
langlookup|Sunny|Sunny|
langlookup|Thunderstorms|Thunderstorms|
Best regards,
Ken