0
Отвечен

Yahoo weer module

de Meulenaere Jurgen 6 лет назад в Tips en Trucs обновлен Theo Derks - NL (distributor) 5 лет назад 16
Weet er soms iemand hoe je in de Yahoo weather module, de dagen van de week en de weersvoorspellingen de taal kunt veranderen naar het Nederlands?

In ieder geval bedankt
Jurgen
-1
Als ik me niet vergis is dat niet volledig mogelijk..
Maar weet niet wat de huidige status is…
-1
Hallo!

mogelijk door de iridium script.

Web Server, stuurt een vaste set van woorden. Ze kunnen uitzoeken en vervang alle voor weergave.

Bijvoorbeeld:
- weather - weer
- cloudy - bewolkt
- etc.


[Web Server] send - "Cloudy" - iRidium Script receiving, searching word and show it via your language - "bewolkt"
-1
En waar vind ik die file die moet aangepast worden?
In Iridium Script vind ik die teksten niet?


bedankt.



-1
Hallo!

Open project module, open de script editor en het script te wijzigen
-1
Hallo,


Als ik de script editor open dan heb ik enkel Yahooweatherwidget_1 en daar staan de teksten niet tussen?


Zit ik verkeerd te zoeken?




mvg



-1
Hallo,


Als je kijkt in de GUI vind je dat de dag bijvoorbeeld wordt weergegeven in het object Today_day in de popup weather.
In het script vind je de variable iToday_day, welke toegang geeft tot het bovenstaande object:



  var iToday_day = 0;
  if(iPopup.GetItem("Today_day") != null)     
      iToday_day = iPopup.GetItem("Today_day");     
 
Als je nu in het script zoekt naar iToday_day zie je ergens staan dat de text property van dit item een waarde krijgt:

          if(iToday_day != 0)   
              iToday_day.Text  = xml.rss.channel.item ["yweather:forecast"][0]["@day"];


Nu is het dus zaak om afhankelijk van de tekst in xml.rss.channel.item ["yweather:forecast"][0]["@day"] om te zetten naar een nederlandse tekst.


Gr Benno
-1
Dag Benno,


Bedankt voor je antwoord en weet je soms waar je [font=verdana]xml.rss.channel.item ["yweather:forecast"][0]["@day"] terugvind of is dit iets dat bij Yahoo vastligt? Ik vind deze teksten nergens terug?

[font=verdana]bedankt

Die informatie komt inderdaad van Yahoo.
Wat je dus moet doen, is bekijken wat er in staat op de verschillende dagen, en dat vertalen.
Als er op maandag bv "Mon" staat, kun je zoiets doen:


if([font=verdana][size=11px]xml.rss.channel.item ["yweather:forecast"][0]["@day"][font=verdana][size=11px]  == "Mon"[size=78%]){
[size=78%]    [font=tahoma][size=11px]iToday_day.Text = "Maandag";
[size=78%]}else [size=78%]if([font=verdana][size=11px]xml.rss.channel.item ["yweather:forecast"][0]["@day"][font=verdana][size=11px]  == "Tue"[size=10px]){
[size=10px]    [size=10px][font=tahoma][size=11px]iToday_day.Text = "Dinsdag";
[size=10px]}[size=10px]etc.[size=10px]etc.[size=10px]Gr Benno[size=11px]
Benno, dit staat dan waarschijnlijk in een XML file, en waar vind ik die?

Ik heb dat al geunzipt en dan vind ik een config.xml terug maar daar staat die tekst niet in.
In welke file vind ik volgende tekst terug? : if(xml.rss.channel.item ["yweather:forecast"][0]["@day"]  == "Mon"[size=78%]){
[size=78%]    iToday_day.Text = "Maandag";
[size=78%]}else [size=78%]if(xml.rss.channel.item ["yweather:forecast"][0]["@day"]  == "Tue"){
    iToday_day.Text = "Dinsdag";
}



sorry voor het storen hoor, in ieder geval bedankt!

Hallo,


De informatie in de xml wordt dynamisch gegenereerd door Yahoo (afhankelijk van de weersomstandigheden).
Het is dus niet echt een file op je harde schijf, maar een stuk tekst wat je van de website ontvangt.
Als je in het script zoekt wordt er ergens ontvangen data omgezet naar xml (iets van var xml = new XML(Globalxml))
Als je daar nu de volgende regel onderzet:
IR.Log(Globalxml);


Nu wordt de ontvangen data van Yahoo (en dus de data in de xml file geprint in het logvenster) op basis hiervan weet je dus wat er instaat en kun je iets gaan vertalen.


Gr Benno
На рассмотрении
Jurgen,
Was het je nog ooit gelukt om de vertaling naar het Nederlands voor elkaar te krijgen?

Ben ik even benieuwd naar!

Theo
+2
Отвечен
Dag Jurgen,

Dit is de aangepaste versie van de YahooWeatherWidget_1 om Nederlandse teksten te krijgen. Hij is nog niet af; dit komt omdat er geen lijst bestaat met alle mogelijke Engelse benamingen. Ook de datums moeten nog vertaald worden.

Nog niet compleet, maar dan heb je een begin...


Theo

var YahooWeatherWidget = function(Popup)
{
IR.Log("****************************** Yahoo is gestart!!! ****************************** ");
// Weather GUI
var iPopup = IR.GetItem(Popup);

var iSettings = 0;
if(iPopup.GetItem("Settings") != null)
{
iSettings = iPopup.GetItem("Settings");
IR.AddListener(IR.EVENT_ITEM_RELEASE, iSettings, function()
{
IR.ShowPopup("Weather_Add_City")
});
}

var iList = 0;

var iRefresh = 0
if(iPopup.GetItem("Refresh") != null)
{
iRefresh = iPopup.GetItem("Refresh");
IR.AddListener(IR.EVENT_ITEM_RELEASE, iRefresh, Refresh);
}

var iSelect_City = 0;


var iCity = 0;
if(iPopup.GetItem("City") != null)
iCity = iPopup.GetItem("City");

var iCountry = 0;
if(iPopup.GetItem("Country") != null)
iCountry = iPopup.GetItem("Country");

var iFeels = 0;
if(iPopup.GetItem("Feels") != null)
iFeels = iPopup.GetItem("Feels");

var iDirection = 0;
if(iPopup.GetItem("Direction") != null)
iDirection = iPopup.GetItem("Direction");

var iSpeed = 0;
if(iPopup.GetItem("Speed") != null)
iSpeed = iPopup.GetItem("Speed");

var iHumidity = 0;
if(iPopup.GetItem("Humidity") != null)
iHumidity = iPopup.GetItem("Humidity");

var iVisibility = 0;
if(iPopup.GetItem("Visibility") != null)
iVisibility = iPopup.GetItem("Visibility");

var iPressure = 0;
if(iPopup.GetItem("Pressure") != null)
iPressure = iPopup.GetItem("Pressure");

var iRising = 0;
if(iPopup.GetItem("Rising") != null)
iRising = iPopup.GetItem("Rising");

var iSunrise = 0;
if(iPopup.GetItem("Sunrise") != null)
iSunrise = iPopup.GetItem("Sunrise");

var iSunset = 0;
if(iPopup.GetItem("Sunset") != null)
iSunset = iPopup.GetItem("Sunset");

var iPressure = 0;
if(iPopup.GetItem("Pressure") != null)
iPressure = iPopup.GetItem("Pressure");

var iToday_day = 0;
if(iPopup.GetItem("Today_day") != null)
iToday_day = iPopup.GetItem("Today_day");


var iToday_date = 0;
if(iPopup.GetItem("Today_date") != null)
iToday_date = iPopup.GetItem("Today_date");

var iToday_high_low = 0;
if(iPopup.GetItem("Today_high_low") != null)
iToday_high_low = iPopup.GetItem("Today_high_low");

var iToday_text = 0;
if(iPopup.GetItem("Today_text") != null)
iToday_text = iPopup.GetItem("Today_text");

var iTommorow_day = 0;
if(iPopup.GetItem("Tommorow_day") != null)
iTommorow_day = iPopup.GetItem("Tommorow_day");

var iTommorow_date = 0;
if(iPopup.GetItem("Tommorow_date") != null)
iTommorow_date = iPopup.GetItem("Tommorow_date");

var iTommorow_high_low = 0;
if(iPopup.GetItem("Tommorow_high_low") != null)
iTommorow_high_low = iPopup.GetItem("Tommorow_high_low");

var iTommorow_text = 0;
if(iPopup.GetItem("Tommorow_text") != null)
iTommorow_text = iPopup.GetItem("Tommorow_text");

var iWeather_image_today = 0;
if(iPopup.GetItem("Weather_image_today") != null)
iWeather_image_today = iPopup.GetItem("Weather_image_today");

var iWeather_image_today_bg = 0;
if(iPopup.GetItem("Weather_image_today_bg") != null)
iWeather_image_today_bg = iPopup.GetItem("Weather_image_today_bg");

var iWeather_image_tommorow = 0;
if(iPopup.GetItem("Weather_image_tommorow") != null)
iWeather_image_tommorow = iPopup.GetItem("Weather_image_tommorow");

var iWeather_image_tommorow_bg = 0;
if(iPopup.GetItem("Weather_image_tommorow_bg") != null)
iWeather_image_tommorow_bg = iPopup.GetItem("Weather_image_tommorow_bg");


// 3 - days items

var i3_day = 0;
if(iPopup.GetItem("3_day") != null)
i3_day = iPopup.GetItem("3_day");

var i3_date = 0;
if(iPopup.GetItem("3_date") != null)
i3_date = iPopup.GetItem("3_date");

var i3_high_low = 0;
if(iPopup.GetItem("3_high_low") != null)
i3_high_low = iPopup.GetItem("3_high_low");

var i3_text = 0;
if(iPopup.GetItem("3_text") != null)
i3_text = iPopup.GetItem("3_text");

var iWeather_image_3 = 0;
if(iPopup.GetItem("Weather_image_3") != null)
iWeather_image_3 = iPopup.GetItem("Weather_image_3");

var iWeather_image_3_bg = 0;
if(iPopup.GetItem("3_bg") != null)
iWeather_image_3_bg = iPopup.GetItem("3_bg");

var i4_day = 0;
if(iPopup.GetItem("4_day") != null)
i4_day = iPopup.GetItem("4_day");

var i4_date = 0;
if(iPopup.GetItem("4_date") != null)
i4_date = iPopup.GetItem("4_date");

var i4_high_low = 0;
if(iPopup.GetItem("4_high_low") != null)
i4_high_low = iPopup.GetItem("4_high_low");

var i4_text = 0;
if(iPopup.GetItem("4_text") != null)
i4_text = iPopup.GetItem("4_text");

var iWeather_image_4 = 0;
if(iPopup.GetItem("Weather_image_4") != null)
iWeather_image_4 = iPopup.GetItem("Weather_image_4");

var iWeather_image_4_bg = 0;
if(iPopup.GetItem("4_bg") != null)
iWeather_image_4_bg = iPopup.GetItem("4_bg");

var i5_day = 0;
if(iPopup.GetItem("5_day") != null)
i5_day = iPopup.GetItem("5_day");

var i5_date = 0;
if(iPopup.GetItem("5_date") != null)
i5_date = iPopup.GetItem("5_date");

var i5_high_low = 0;
if(iPopup.GetItem("5_high_low") != null)
i5_high_low = iPopup.GetItem("5_high_low");

var i5_text = 0;
if(iPopup.GetItem("5_text") != null)
i5_text = iPopup.GetItem("5_text");

var iWeather_image_5 = 0;
if(iPopup.GetItem("Weather_image_5") != null)
iWeather_image_5 = iPopup.GetItem("Weather_image_5");

var iWeather_image_5_bg = 0;
if(iPopup.GetItem("5_bg") != null)
iWeather_image_5_bg = iPopup.GetItem("5_bg");


// Weather Data
var DefaultData = [0,1,"Nederasselt",731856];
var Globalxml = "";
var Device = IR.CreateDevice(IR.DEVICE_CUSTOM_HTTP_TCP, "YahooWeatherWidget", "weather.yahooapis.com", 80);
var Data = 0;

// Function
function GetData()
{
return DefaultData;
}

// System function
function LinkCreate(image){
switch(image){
case 27:
case 29:
case 31:
case 33:
return image += "n";
break;
default:
return image += "d";
};
};


// GUI function
function Refresh()
{

Device.Send(['GET,/forecastrss?w='+ Data[3 + Data[0] * 2] +'&u=c,']);
}

IR.SetInterval(86400000, Refresh);

IR.AddListener(IR.EVENT_START,0,function()
{
Data = GetData();
});


IR.AddListener(IR.EVENT_START, 0, Refresh);


IR.AddListener(IR.EVENT_RECEIVE_TEXT, Device, function(text)
{
var Can = (text.lastIndexOf("</rss>") != -1);
if (Can == true)
{
Globalxml += text;
var xml = new XML(Globalxml);
if((xml.rss.channel.title == "Yahoo! Weather - Error"))
{

IR.PlaySound("BELL.WAV");
Globalxml = "";
}
else
{

// xml
var image = LinkCreate(xml.rss.channel.item ["yweather:forecast"][0]["@code"])
if(iWeather_image_today != 0)
iWeather_image_today.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/l/" + image + "-100567.png");
if(iWeather_image_today_bg != 0)
iWeather_image_today_bg.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/bkgnd/" + image + "-106755.jpg");

image = LinkCreate(xml.rss.channel.item ["yweather:forecast"][1]["@code"])
if(iWeather_image_tommorow != 0)
iWeather_image_tommorow.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/l/" + image + "-100567.png");
if(iWeather_image_tommorow_bg != 0)
iWeather_image_tommorow_bg.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/bkgnd/" + image + "-106755.jpg");

image = LinkCreate(xml.rss.channel.item ["yweather:forecast"][2]["@code"])
if(iWeather_image_3 != 0)
iWeather_image_3.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/l/" + image + "-100567.png");
if(iWeather_image_3_bg != 0)
iWeather_image_3_bg.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/bkgnd/" + image + "-106755.jpg");

image = LinkCreate(xml.rss.channel.item ["yweather:forecast"][3]["@code"])
if(iWeather_image_4 != 0)
iWeather_image_4.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/l/" + image + "-100567.png");
if(iWeather_image_4_bg != 0)
iWeather_image_4_bg.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/bkgnd/" + image + "-106755.jpg");

image = LinkCreate(xml.rss.channel.item ["yweather:forecast"][4]["@code"])
if(iWeather_image_5 != 0)
iWeather_image_5.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/l/" + image + "-100567.png");
if(iWeather_image_5_bg != 0)
iWeather_image_5_bg.GetState(0).Image = ("http://l.yimg.com/os/mit/media/m/weather/images/icons/bkgnd/" + image + "-106755.jpg");

if(iCity != 0)
iCity.Text = xml.rss.channel ["yweather:location"]["@city"];
if(iCountry != 0)
iCountry.Text = xml.rss.channel ["yweather:location"]["@country"] + " " + xml.rss.channel ["yweather:location"]["@region"];
if(iFeels != 0)
iFeels.Text = xml.rss.channel.item["yweather:condition"]["@temp"] + "°" + xml.rss.channel ["yweather:units"]["@temperature"];
if(iDirection != 0)
iDirection.Text = xml.rss.channel ["yweather:wind"]["@direction"];
if(iSpeed != 0)
iSpeed.Text = xml.rss.channel ["yweather:wind"]["@speed"] + " " + xml.rss.channel ["yweather:units"]["@speed"];
if(iHumidity != 0)
iHumidity.Text = xml.rss.channel ["yweather:atmosphere"]["@humidity"] + "%";
if(iVisibility != 0)
iVisibility.Text = xml.rss.channel ["yweather:atmosphere"]["@visibility"] + " " + xml.rss.channel ["yweather:units"]["@distance"];
if(iPressure != 0)
iPressure.Text = xml.rss.channel ["yweather:atmosphere"]["@pressure"] + " " + xml.rss.channel ["yweather:units"]["@pressure"];
if(iRising != 0)
iRising.Text = xml.rss.channel ["yweather:atmosphere"]["@rising"];
if(iSunrise != 0)
iSunrise.Text = xml.rss.channel ["yweather:astronomy"]["@sunrise"];
if(iSunset != 0)
iSunset.Text = xml.rss.channel ["yweather:astronomy"]["@sunset"];
if(iToday_day != 0)
iToday_day.Text = xml.rss.channel.item ["yweather:forecast"][0]["@day"];
if(iToday_date != 0)
iToday_date.Text = xml.rss.channel.item ["yweather:forecast"][0]["@date"];
if(iToday_high_low != 0)
iToday_high_low.Text = xml.rss.channel.item ["yweather:forecast"][0]["@low"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"]+" .. " + xml.rss.channel.item ["yweather:forecast"][0]["@high"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"];
if(iToday_text != 0)
iToday_text.Text = xml.rss.channel.item["yweather:condition"]["@text"];
if(iTommorow_day != 0)
iTommorow_day.Text = xml.rss.channel.item ["yweather:forecast"][1]["@day"];
if(iTommorow_date != 0)
iTommorow_date.Text = xml.rss.channel.item ["yweather:forecast"][1]["@date"];
if(iTommorow_high_low != 0)
iTommorow_high_low.Text = xml.rss.channel.item ["yweather:forecast"][1]["@low"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"]+" .. " + xml.rss.channel.item ["yweather:forecast"][1]["@high"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"];
if(iTommorow_text != 0)
iTommorow_text.Text = xml.rss.channel.item ["yweather:forecast"][1]["@text"];


// 3 - 5 days
if(i3_day != 0)
i3_day.Text = xml.rss.channel.item ["yweather:forecast"][2]["@day"];
if(i3_date != 0)
i3_date.Text = xml.rss.channel.item ["yweather:forecast"][2]["@date"];
if(i3_high_low != 0)
i3_high_low.Text = xml.rss.channel.item ["yweather:forecast"][2]["@low"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"]+" .. " + xml.rss.channel.item ["yweather:forecast"][2]["@high"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"];
if(i3_text != 0)
i3_text.Text = xml.rss.channel.item ["yweather:forecast"][2]["@text"];

if(i4_day != 0)
i4_day.Text = xml.rss.channel.item ["yweather:forecast"][3]["@day"];
if(i4_date != 0)
i4_date.Text = xml.rss.channel.item ["yweather:forecast"][3]["@date"];
if(i4_high_low != 0)
i4_high_low.Text = xml.rss.channel.item ["yweather:forecast"][3]["@low"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"]+" .. " + xml.rss.channel.item ["yweather:forecast"][3]["@high"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"];
if(i4_text != 0)
i4_text.Text = xml.rss.channel.item ["yweather:forecast"][3]["@text"];

if(i5_day != 0)
i5_day.Text = xml.rss.channel.item ["yweather:forecast"][4]["@day"];
if(i5_date != 0)
i5_date.Text = xml.rss.channel.item ["yweather:forecast"][4]["@date"];
if(i5_high_low != 0)
i5_high_low.Text = xml.rss.channel.item ["yweather:forecast"][4]["@low"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"]+" .. " + xml.rss.channel.item ["yweather:forecast"][4]["@high"] + "°"+xml.rss.channel ["yweather:units"]["@temperature"];
if(i5_text != 0)
i5_text.Text = xml.rss.channel.item ["yweather:forecast"][4]["@text"];

//
// Vertalen van Engelse teksten naar Nederlandse begrippen
//
IR.Log("*************************** Today_day *************************" + iToday_day.Text);
IR.Log("*************************** Tomorrow_day **********************" + iTommorow_day.Text);
IR.Log("*************************** Today_text ************************" + iToday_text.Text);
IR.Log("*************************** Today_date ************************" + iToday_date.Text);


// De dag van vandaag vertalen naar het Nederlands:

if(iToday_day.Text == "Sat") iToday_day.Text = "Zaterdag";
if(iToday_day.Text == "Sun") iToday_day.Text = "Zondag";
if(iToday_day.Text == "Mon") iToday_day.Text = "Maandag";
if(iToday_day.Text == "Tue") iToday_day.Text = "Dinsdag";
if(iToday_day.Text == "Wed") iToday_day.Text = "Woensdag";
if(iToday_day.Text == "Thu") iToday_day.Text = "Donderdag";
if(iToday_day.Text == "Fri") iToday_day.Text = "Vrijdag";

// De dag van morgen vertalen naar het Nederlands:

if(iTommorow_day.Text == "Sat") iTommorow_day.Text = "Zaterdag";
if(iTommorow_day.Text == "Sun") iTommorow_day.Text = "Zondag";
if(iTommorow_day.Text == "Mon") iTommorow_day.Text = "Maandag";
if(iTommorow_day.Text == "Tue") iTommorow_day.Text = "Dinsdag";
if(iTommorow_day.Text == "Wed") iTommorow_day.Text = "Woensdag";
if(iTommorow_day.Text == "Thu") iTommorow_day.Text = "Donderdag";
if(iTommorow_day.Text == "Fri") iTommorow_day.Text = "Vrijdag";

// De dag van overmorgen vertalen naar het Nederlands:

if(i3_day.Text == "Sat") i3_day.Text = "Zaterdag";
if(i3_day.Text == "Sun") i3_day.Text = "Zondag";
if(i3_day.Text == "Mon") i3_day.Text = "Maandag";
if(i3_day.Text == "Tue") i3_day.Text = "Dinsdag";
if(i3_day.Text == "Wed") i3_day.Text = "Woensdag";
if(i3_day.Text == "Thu") i3_day.Text = "Donderdag";
if(i3_day.Text == "Fri") i3_day.Text = "Vrijdag";

// Dag 4 vertalen naar het Nederlands:

if(i4_day.Text == "Sat") i4_day.Text = "Zaterdag";
if(i4_day.Text == "Sun") i4_day.Text = "Zondag";
if(i4_day.Text == "Mon") i4_day.Text = "Maandag";
if(i4_day.Text == "Tue") i4_day.Text = "Dinsdag";
if(i4_day.Text == "Wed") i4_day.Text = "Woensdag";
if(i4_day.Text == "Thu") i4_day.Text = "Donderdag";
if(i4_day.Text == "Fri") i4_day.Text = "Vrijdag";

// Dag 5 vertalen naar het Nederlands:

if(i5_day.Text == "Sat") i5_day.Text = "Zaterdag";
if(i5_day.Text == "Sun") i5_day.Text = "Zondag";
if(i5_day.Text == "Mon") i5_day.Text = "Maandag";
if(i5_day.Text == "Tue") i5_day.Text = "Dinsdag";
if(i5_day.Text == "Wed") i5_day.Text = "Woensdag";
if(i5_day.Text == "Thu") i5_day.Text = "Donderdag";
if(i5_day.Text == "Fri") i5_day.Text = "Vrijdag";

// *********************************************************************
// De datum vertalen naar het Nederlands:
// *********************************************************************

// De datum van vandaag vertalen naar het Nederlands:

if(iToday_date.Text == "Jan") iToday_date.Text = "januari";
if(iToday_date.Text == "Feb") iToday_date.Text = "februari";
if(iToday_date.Text == "Mar") iToday_date.Text = "maart";
if(iToday_date.Text == "Apr") iToday_date.Text = "april";
if(iToday_date.Text == "May") iToday_date.Text = "mei";
if(iToday_date.Text == "Jun") iToday_date.Text = "juni";
if(iToday_date.Text == "Jul") iToday_date.Text = "juli";
if(iToday_date.Text == "Aug") iToday_date.Text = "augustus";
if(iToday_date.Text == "Sep") iToday_date.Text = "september";
if(iToday_date.Text == "Oct") iToday_date.Text = "oktober";
if(iToday_date.Text == "Nov") iToday_date.Text = "november";
if(iToday_date.Text == "Dec") iToday_date.Text = "december";








// De datum van morgen vertalen naar het Nederlands:

if(iTommorow_day.Text == "Sat") iTommorow_day.Text = "Zaterdag";
if(iTommorow_day.Text == "Sun") iTommorow_day.Text = "Zondag";
if(iTommorow_day.Text == "Mon") iTommorow_day.Text = "Maandag";
if(iTommorow_day.Text == "Tue") iTommorow_day.Text = "Dinsdag";
if(iTommorow_day.Text == "Wed") iTommorow_day.Text = "Woensdag";
if(iTommorow_day.Text == "Thu") iTommorow_day.Text = "Donderdag";
if(iTommorow_day.Text == "Fri") iTommorow_day.Text = "Vrijdag";

// De datum van overmorgen vertalen naar het Nederlands:

if(i3_day.Text == "Sat") i3_day.Text = "Zaterdag";
if(i3_day.Text == "Sun") i3_day.Text = "Zondag";
if(i3_day.Text == "Mon") i3_day.Text = "Maandag";
if(i3_day.Text == "Tue") i3_day.Text = "Dinsdag";
if(i3_day.Text == "Wed") i3_day.Text = "Woensdag";
if(i3_day.Text == "Thu") i3_day.Text = "Donderdag";
if(i3_day.Text == "Fri") i3_day.Text = "Vrijdag";

// De datum van dag 4 vertalen naar het Nederlands:

if(i4_day.Text == "Sat") i4_day.Text = "Zaterdag";
if(i4_day.Text == "Sun") i4_day.Text = "Zondag";
if(i4_day.Text == "Mon") i4_day.Text = "Maandag";
if(i4_day.Text == "Tue") i4_day.Text = "Dinsdag";
if(i4_day.Text == "Wed") i4_day.Text = "Woensdag";
if(i4_day.Text == "Thu") i4_day.Text = "Donderdag";
if(i4_day.Text == "Fri") i4_day.Text = "Vrijdag";

// De datum van dag 5 vertalen naar het Nederlands:

if(i5_day.Text == "Sat") i5_day.Text = "Zaterdag";
if(i5_day.Text == "Sun") i5_day.Text = "Zondag";
if(i5_day.Text == "Mon") i5_day.Text = "Maandag";
if(i5_day.Text == "Tue") i5_day.Text = "Dinsdag";
if(i5_day.Text == "Wed") i5_day.Text = "Woensdag";
if(i5_day.Text == "Thu") i5_day.Text = "Donderdag";
if(i5_day.Text == "Fri") i5_day.Text = "Vrijdag";


// *********************************************************************
// De gesteldheid van het weer van vandaag vertalen naar het Nederlands:
// *********************************************************************


if(iToday_text.Text == "AM Showers") iToday_text.Text = "'s morgens regen";
if(iToday_text.Text == "AM Showers/Wind") iToday_text.Text = "'s morgens regen en wind";
if(iToday_text.Text == "AM Clouds/PM Sun") iToday_text.Text = "'s morgens bewolkt/ 's middags zon";

if(iToday_text.Text == "Clear") iToday_text.Text = "Helder";
if(iToday_text.Text == "Cloudy") iToday_text.Text = "Bewolkt";

if(iToday_text.Text == "Mostly Cloudy") iToday_text.Text = "Veelal bewolkt";
if(iToday_text.Text == "Mostly Sunny") iToday_text.Text = "Veelal zonnig";
if(iToday_text.Text == "Mostly Clear") iToday_text.Text = "Veelal helder";


if(iToday_text.Text == "Partly Cloudy") iToday_text.Text = "Gedeeltelijk bewolkt";
if(iToday_text.Text == "PM Showers") iToday_text.Text = "'s middags regen";
if(iToday_text.Text == "PM Showers/Wind") iToday_text.Text = "'s middags regen en wind";
if(iToday_text.Text == "PM Rain") iToday_text.Text = "'s middags regen";
if(iToday_text.Text == "PM Light Rain") iToday_text.Text = "'s middags lichte regen";
if(iToday_text.Text == "PM Thunderstorms") iToday_text.Text = "'s middags storm!";

if(iToday_text.Text == "Rain") iToday_text.Text = "Regen";
if(iToday_text.Text == "Rain/Wind") iToday_text.Text = "Regen en wind";
if(iToday_text.Text == "Rain/Wind Early") iToday_text.Text = "Regen en wind";

if(iToday_text.Text == "Showers/Wind") iToday_text.Text = "Regen en wind";
if(iToday_text.Text == "Showers") iToday_text.Text = "Regen";
if(iToday_text.Text == "Sunny") iToday_text.Text = "Zonnig";


// Vertalen van weergesteldheid van morgen

if(iTommorow_text.Text == "AM Showers") iTommorow_text.Text = "'s morgens regen";
if(iTommorow_text.Text == "AM Showers/Wind") iTommorow_text.Text = "'s morgens regen en wind";
if(iTommorow_text.Text == "AM Clouds/PM Sun") iTommorow_text.Text = "'s morgens bewolkt/ 's middags zon";

if(iTommorow_text.Text == "Clear") iTommorow_text.Text = "Helder";
if(iTommorow_text.Text == "Cloudy") iTommorow_text.Text = "Bewolkt";

if(iTommorow_text.Text == "Mostly Cloudy") iTommorow_text.Text = "Veelal bewolkt";
if(iTommorow_text.Text == "Mostly Sunny") iTommorow_text.Text = "Veelal zonnig";
if(iTommorow_text.Text == "Mostly Clear") iTommorow_text.Text = "Veelal helder";


if(iTommorow_text.Text == "Partly Cloudy") iTommorow_text.Text = "Gedeeltelijk bewolkt";
if(iTommorow_text.Text == "PM Showers") iTommorow_text.Text = "'s middags regen";
if(iTommorow_text.Text == "PM Showers/Wind") iTommorow_text.Text = "'s middags regen en wind";
if(iTommorow_text.Text == "PM Rain") iTommorow_text.Text = "'s middags regen";
if(iTommorow_text.Text == "PM Light Rain") iTommorow_text.Text = "'s middags lichte regen";
if(iTommorow_text.Text == "PM Thunderstorms") iTommorow_text.Text = "'s middags storm!";

if(iTommorow_text.Text == "Rain") iTommorow_text.Text = "Regen";
if(iTommorow_text.Text == "Rain/Wind") iTommorow_text.Text = "Regen en wind";
if(iTommorow_text.Text == "Rain/Wind Early") iTommorow_text.Text = "Regen en wind";


if(iTommorow_text.Text == "Showers/Wind") iTommorow_text.Text = "Regen en wind";
if(iTommorow_text.Text == "Showers") iTommorow_text.Text = "Regen";
if(iTommorow_text.Text == "Sunny") iTommorow_text.Text = "Zonnig";


// Vertalen van weergesteldheid van overmorgen

if(i3_text.Text == "AM Showers") i3_text.Text = "'s morgens regen";
if(i3_text.Text == "AM Showers/Wind") i3_text.Text = "'s morgens regen en wind";
if(i3_text.Text == "AM Clouds/PM Sun") i3_text.Text = "'s morgens bewolkt/ 's middags zon";

if(i3_text.Text == "Clear") i3_text.Text = "Helder";
if(i3_text.Text == "Cloudy") i3_text.Text = "Bewolkt";

if(i3_text.Text == "Mostly Cloudy") i3_text.Text = "Veelal bewolkt";
if(i3_text.Text == "Mostly Sunny") i3_text.Text = "Veelal zonnig";
if(i3_text.Text == "Mostly Clear") i3_text.Text = "Veelal helder";


if(i3_text.Text == "Partly Cloudy") i3_text.Text = "Gedeeltelijk bewolkt";
if(i3_text.Text == "PM Showers") i3_text.Text = "'s middags regen";
if(i3_text.Text == "PM Showers/Wind") i3_text.Text = "'s middags regen en wind";
if(i3_text.Text == "PM Rain") i3_text.Text = "'s middags regen";
if(i3_text.Text == "PM Light Rain") i3_text.Text = "'s middags lichte regen";
if(i3_text.Text == "PM Thunderstorms") i3_text.Text = "'s middags storm!";


if(i3_text.Text == "Rain") i3_text.Text = "Regen";
if(i3_text.Text == "Rain/Wind") i3_text.Text = "Regen en wind";
if(i3_text.Text == "Rain/Wind Early") i3_text.Text = "Regen en wind";

if(i3_text.Text == "Showers/Wind") i3_text.Text = "Regen en wind";
if(i3_text.Text == "Showers") i3_text.Text = "Regen";
if(i3_text.Text == "Sunny") i3_text.Text = "Zonnig";

// Vertalen van weergesteldheid van dag 4

if(i4_text.Text == "AM Showers") i4_text.Text = "'s morgens regen";
if(i4_text.Text == "AM Showers/Wind") i4_text.Text = "'s morgens regen en wind";
if(i4_text.Text == "AM Clouds/PM Sun") i4_text.Text = "'s morgens bewolkt/ 's middags zon";

if(i4_text.Text == "Clear") i4_text.Text = "Helder";
if(i4_text.Text == "Cloudy") i4_text.Text = "Bewolkt";

if(i4_text.Text == "Mostly Cloudy") i4_text.Text = "Veelal bewolkt";
if(i4_text.Text == "Mostly Sunny") i4_text.Text = "Veelal zonnig";
if(i4_text.Text == "Mostly Clear") i4_text.Text = "Veelal helder";


if(i4_text.Text == "Partly Cloudy") i4_text.Text = "Gedeeltelijk bewolkt";
if(i4_text.Text == "PM Showers") i4_text.Text = "'s middags regen";
if(i4_text.Text == "PM Showers/Wind") i4_text.Text = "'s middags regen en wind";
if(i4_text.Text == "PM Rain") i4_text.Text = "'s middags regen";
if(i4_text.Text == "PM Light Rain") i4_text.Text = "'s middags lichte regen";
if(i4_text.Text == "PM Thunderstorms") i4_text.Text = "'s middags storm!";


if(i4_text.Text == "Rain") i4_text.Text = "Regen";
if(i4_text.Text == "Rain/Wind") i4_text.Text = "Regen en wind";
if(i4_text.Text == "Rain/Wind Early") i4_text.Text = "Regen en wind";

if(i4_text.Text == "Showers/Wind") i4_text.Text = "Regen en wind";
if(i4_text.Text == "Showers") i4_text.Text = "Regen";
if(i4_text.Text == "Sunny") i4_text.Text = "Zonnig";


// Vertalen van weergesteldheid van dag 5

if(i5_text.Text == "AM Showers") i5_text.Text = "'s morgens regen";
if(i5_text.Text == "AM Showers/Wind") i5_text.Text = "'s morgens regen en wind";
if(i5_text.Text == "AM Clouds/PM Sun") i5_text.Text = "'s morgens bewolkt/ 's middags zon";

if(i5_text.Text == "Clear") i5_text.Text = "Helder";
if(i5_text.Text == "Cloudy") i5_text.Text = "Bewolkt";

if(i5_text.Text == "Mostly Cloudy") i5_text.Text = "Veelal bewolkt";
if(i5_text.Text == "Mostly Sunny") i5_text.Text = "Veelal zonnig";
if(i5_text.Text == "Mostly Clear") i5_text.Text = "Veelal helder";


if(i5_text.Text == "Partly Cloudy") i5_text.Text = "Gedeeltelijk bewolkt";
if(i5_text.Text == "PM Showers") i5_text.Text = "'s middags regen";
if(i5_text.Text == "PM Showers/Wind") i5_text.Text = "'s middags regen en wind";
if(i5_text.Text == "PM Rain") i5_text.Text = "'s middags regen";
if(i5_text.Text == "PM Light Rain") i5_text.Text = "'s middags lichte regen";
if(i5_text.Text == "PM Thunderstorms") i5_text.Text = "'s middags storm!";

if(i5_text.Text == "Rain") i5_text.Text = "Regen";
if(i5_text.Text == "Rain/Wind") i5_text.Text = "Regen en wind";
if(i5_text.Text == "Rain/Wind Early") i5_text.Text = "Regen en wind";

if(i5_text.Text == "Showers/Wind") i5_text.Text = "Regen en wind";
if(i5_text.Text == "Showers") i5_text.Text = "Regen";
if(i5_text.Text == "Sunny") i5_text.Text = "Zonnig";





IR.PlaySound("ANGEL.WAV");

Globalxml = "";
}
}
else
{
Globalxml += text;
};
});
}

var Widget_1 = new YahooWeatherWidget("PopupWeer");

Сервис поддержки клиентов работает на платформе UserEcho