[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/dataengines/weather/ions
From:       Shawn Starr <shawn.starr () rogers ! com>
Date:       2009-08-02 23:09:24
Message-ID: 1249254564.156557.25659.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1006070 by spstarr:

Show a thunderstorm icon instead for 'thundershowers'. Adjust string Today to day.

 M  +6 -1      ion_envcan.cpp  


--- trunk/KDE/kdebase/workspace/plasma/dataengines/weather/ions/ion_envcan.cpp #1006069:1006070
@@ -471,7 +471,7 @@
     forecastList["chance of showers at times heavy"] = Rain;
     forecastList["chance of showers at times heavy or thundershowers"] = Thunderstorm;
     forecastList["chance of showers at times heavy or thunderstorms"] = Thunderstorm;
-    forecastList["chance of showers or thundershowers"] = Showers;
+    forecastList["chance of showers or thundershowers"] = Thunderstorm;
     forecastList["chance of showers or thunderstorms"] = Thunderstorm;
     forecastList["chance of snow"] = Snow;
     forecastList["chance of snow and blizzard"] = Snow;
@@ -1753,6 +1753,11 @@
 
     for (int i = 0; i < d->m_weatherData[source].forecasts.size(); ++i) {
         // We need to shortform the day/night strings.
+
+        if (d->m_weatherData[source].forecasts[i]->forecastPeriod.contains("Today")) {
+            d->m_weatherData[source].forecasts[i]->forecastPeriod.replace("Today", i18n("day"));
+        }
+
         if (d->m_weatherData[source].forecasts[i]->forecastPeriod.contains("Tonight")) {
             d->m_weatherData[source].forecasts[i]->forecastPeriod.replace("Tonight", i18n("nite"));
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic