[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Mon Sep 20 07:43:44 CEST 2004


CVS commit by harris: 

Fixing bug #89098 (Date not localized in What's Up Tonight tool).
This is part 2 of 2; don't forget to update libkdeedu!
Now that we are using KDE format strings for ExtDates, this commit updates the format strings in the WUT tool and in the Time Infobox, so that they use KGlobal::locale()->dateFormat().

CCMAIL: kstars-devel at kde.org
CCMAIL: 89098-done at bugs.kde.org


  M +2 -2      infoboxes.cpp   1.22
  M +1 -1      tools/wutdialog.cpp   1.34


--- kdeedu/kstars/kstars/tools/wutdialog.cpp  #1.33:1.34
@@ -82,5 +82,5 @@ WUTDialog::WUTDialog(KStars *ks) :
         sGeo += ", " + geo->translatedCountry();
         WUT->LocationLabel->setText( i18n( "at %1" ).arg( sGeo ) );
-        WUT->DateLabel->setText( i18n( "The night of %1" ).arg( Evening.date().toString() ) );
+        WUT->DateLabel->setText( i18n( "The night of %1" ).arg( Evening.date().toString( Qt::LocalDate ) ) );
 
         initCategories();

--- kdeedu/kstars/kstars/infoboxes.cpp  #1.21:1.22
@@ -342,7 +342,7 @@ bool InfoBoxes::timeChanged( const KStar
         
         TimeBox->setText1( i18n( "Local Time", "LT: " ) + lt.time().toString()
-                + "   " + lt.date().toString("dd MMM yyyy") );
+                + "   " + lt.date().toString( "%d %b %Y" ) );
         TimeBox->setText2( i18n( "Universal Time", "UT: " ) + ut.time().toString()
-                + "   " + ut.date().toString("dd MMM yyyy") );
+                + "   " + ut.date().toString( "%d %b %Y" ) );
         QString STString;
         STString = STString.sprintf( "%02d:%02d:%02d   ", lst->hour(), lst->minute(), lst->second() );




More information about the Kstars-devel mailing list