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

List:       kde-commits
Subject:    koffice/lib/kofficecore
From:       Peter Simonsson <psn () linux ! se>
Date:       2006-02-10 16:35:36
Message-ID: 1139589336.398055.16683.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 508061 by psn:

Add missing i18n, sorry :( Thx goes to Burkhard Lück for noticing.


 M  +4 -10     koDetailsPane.cc  


--- trunk/koffice/lib/kofficecore/koDetailsPane.cc #508060:508061
@@ -119,12 +119,6 @@
     if(t->isHidden() || (t->measureSystem() == dontShow))
       continue;
 
-    QString listText = "<b>" + t->name() + "</b>";
-
-    if(!t->description().isEmpty()) {
-      listText += "<br>" + t->description();
-    }
-
     KListViewItem* item = new KListViewItem(m_documentList, t->name(), \
t->description(), t->file());  QImage icon = \
t->loadPicture(instance).convertToImage();  icon = icon.smoothScale(64, 64, \
QImage::ScaleMin); @@ -383,10 +377,10 @@
     if(static_cast<KoFileListItem*>(item)->fileItem()) {
       KFileItem* fileItem = static_cast<KoFileListItem*>(item)->fileItem();
       QString details = "<center><table border=\"0\">";
-      details += "<tr><td><b>Modified:</b></td>";
-      details += "<td>" + fileItem->timeString(KIO::UDS_MODIFICATION_TIME) + \
                "</td></tr>";
-      details += "<tr><td><b>Accessed:</b></td>";
-      details += "<td>" + fileItem->timeString(KIO::UDS_ACCESS_TIME) + "</td></tr>";
+      details += i18n("File modification date and time. %1 is date time", \
"<tr><td><b>Modified:</b></td><td>%1</td></tr>") +          \
.arg(fileItem->timeString(KIO::UDS_MODIFICATION_TIME)); +      details += i18n("File \
access date and time. %1 is date time", \
"<tr><td><b>Accessed:</b></td><td>%1</td></tr>") +          \
.arg(fileItem->timeString(KIO::UDS_ACCESS_TIME));  details += "</table></center>";
       m_detailsLabel->setText(details);
     } else {


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

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