[Kde-imaging] branches/extragear/kde3/libs/kipi-plugins/printwizard

Angelo Naselli anaselli at linux.it
Mon Jul 23 23:39:56 CEST 2007


SVN commit 691547 by anaselli:

Date is now printed following locale KDE settings
CCMAIL: joerg.kuehne at gmx.de, kde-imaging at kde.org

 M  +6 -2      tphoto.cpp  


--- branches/extragear/kde3/libs/kipi-plugins/printwizard/tphoto.cpp #691546:691547
@@ -28,6 +28,8 @@
 // KDE includes.
 
 #include <kprinter.h>
+#include <kglobal.h>
+#include <klocale.h>
 #include <kdebug.h>
 
 // Local includes.
@@ -224,7 +226,8 @@
 			}
 			else if (captionType == 2) // exif date
 			{
-				caption = photo->exiv2Iface()->getImageDateTime().toString("ddd MMMM d yyyy hh:mm:ss");
+				caption = KGlobal::locale()->formatDateTime(photo->exiv2Iface()->getImageDateTime(),
+										  					false, false);
 				kdDebug( 51000 ) << "exif date  " << caption << endl;
 			}
 	  // draw the text at (0,0), but we will translate and rotate the world
@@ -397,7 +400,8 @@
 			}
 			else if (captionType == 2) // exif date
 			{
-				caption = photo->exiv2Iface()->getImageDateTime().toString("ddd MMMM d yyyy hh:mm:ss");
+				caption = KGlobal::locale()->formatDateTime(photo->exiv2Iface()->getImageDateTime(),
+										  					false, false);
 				kdDebug( 51000 ) << "exif date  " << caption << endl;
 			}
 			int captionW = w-2;


More information about the Kde-imaging mailing list