[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Akarsh Simha akarshsimha at gmail.com
Fri Feb 13 13:26:54 CET 2009


SVN commit 925493 by asimha:

Merging Prakash Mohan's patch, making the dates explicit next to the
moon rise and set times

Thanks Prakash.

CCMAIL: kstars-devel at kde.org



 M  +4 -4      wutdialog.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/tools/wutdialog.cpp #925492:925493
@@ -165,8 +165,8 @@
         sDuration = KGlobal::locale()->formatTime( tDur );
     }
 
-    WUT->SunSetLabel->setText( i18n( "Sunset: %1" , sSet) );
-    WUT->SunRiseLabel->setText( i18n( "Sunrise: %1" , sRise) );
+    WUT->SunSetLabel->setText( i18n( "Sunset: %1 on %2" , sSet, KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) );
+    WUT->SunRiseLabel->setText( i18n( "Sunrise: %1 on %2" , sRise, KGlobal::locale()->formatDate( Tomorrow.date(), KLocale::LongDate) ) );
     WUT->NightDurationLabel->setText( i18n("Night duration: %1 hours", sDuration ) );
 
     // moon almanac information
@@ -190,8 +190,8 @@
         sSet = KGlobal::locale()->formatTime( moonSet.addSecs(30) );
     }
 
-    WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1", sRise ) );
-    WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1", sSet ) );
+    WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1 on %2", sRise, KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate) ) );
+    WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1 on %2", sSet, KGlobal::locale()->formatDate( Tomorrow.date(), KLocale::LongDate) ) );
     oMoon->findPhase( oSun );
     WUT->MoonIllumLabel->setText( oMoon->phaseName() + QString( " (%1%)" ).arg(
                                       int(100.0*oMoon->illum() ) ) );


More information about the Kstars-devel mailing list