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

List:       kde-i18n-doc
Subject:    branches/KDE/4.8/kdenetwork/kget/core
From:       Pino Toscano <pino () kde ! org>
Date:       2012-04-02 15:31:05
Message-ID: 20120402153105.57D96AC89A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1288014 by pino:

remove extra escaping of % in strings

this also causes extraction issues in i18n strings, making them untranslatable

CCMAIL: kde-i18n-doc@kde.org


 M  +7 -7      kget.cpp  


--- branches/KDE/4.8/kdenetwork/kget/core/kget.cpp #1288013:1288014
@@ -254,7 +254,7 @@
     TransferHandler *transfer = createTransfer(srcUrl, destUrl, groupName, start);
     if (transfer) {
         KGet::showNotification(m_mainWindow, "added",
-                                i18n("<p>The following transfer has been added to \
the download list:</p><p style=\"font-size: small;\">\%1</p>", \
transfer->source().pathOrUrl()), +                                i18n("<p>The \
following transfer has been added to the download list:</p><p style=\"font-size: \
small;\">%1</p>", transfer->source().pathOrUrl()),  "kget", i18n("Download added"));
     }
 
@@ -350,7 +350,7 @@
         } else {
             message = i18n("<p>The following transfers have been added to the \
download list:</p>");  }
-        const QString content = QString("<p style=\"font-size: \
small;\">\%1</p>").arg(urls); +        const QString content = QString("<p \
                style=\"font-size: small;\">%1</p>").arg(urls);
         KGet::showNotification(m_mainWindow, "added", message + content, "kget", \
i18n("Download added"));  }
 
@@ -925,7 +925,7 @@
         foreach (const QString &url, urlsFailed) {
             content += '\n' + url;
         }
-        content = QString("<p style=\"font-size: small;\">\%1</p>").arg(content);
+        content = QString("<p style=\"font-size: small;\">%1</p>").arg(content);
 
         KGet::showNotification(m_mainWindow, "error", message + content, \
"dialog-error", i18n("Protocol unsupported"));  }
@@ -1394,15 +1394,15 @@
         if (transferFlags & Transfer::Tc_Status) {
             if ((transfer->status() == Job::Finished)   && (transfer->startStatus() \
!= Job::Finished)) {  KGet::showNotification(KGet::m_mainWindow, "finished",
-                                       i18n("<p>The following file has finished \
downloading:</p><p style=\"font-size: small;\">\%1</p>", \
transfer->dest().fileName()), +                                       i18n("<p>The \
following file has finished downloading:</p><p style=\"font-size: small;\">%1</p>", \
                transfer->dest().fileName()),
                                        "kget", i18n("Download completed"));
             } else if (transfer->status() == Job::Running) {
                 KGet::showNotification(KGet::m_mainWindow, "started",
-                                       i18n("<p>The following transfer has been \
started:</p><p style=\"font-size: small;\">\%1</p>", transfer->source().pathOrUrl()), \
+                                       i18n("<p>The following transfer has been \
started:</p><p style=\"font-size: small;\">%1</p>", transfer->source().pathOrUrl()),  \
                "kget", i18n("Download started"));
             } else if (transfer->status() == Job::Aborted && transfer->error().type \
                != Job::AutomaticRetry) {
-                KNotification * notification = KNotification::event("error", \
i18n("Error"), i18n("<p>There has been an error in the following transfer:</p><p \
                style=\"font-size: small;\">\%1</p>"
-                                            "<p>The error message is:</p><p \
style=\"font-size: small;\">\%2</p>", transfer->source().pathOrUrl(), \
transfer->error().text),  +                KNotification * notification = \
KNotification::event("error", i18n("Error"), i18n("<p>There has been an error in the \
following transfer:</p><p style=\"font-size: small;\">%1</p>" +                       \
"<p>The error message is:</p><p style=\"font-size: small;\">%2</p>", \
                transfer->source().pathOrUrl(), transfer->error().text), 
                                              transfer->error().pixmap, \
KGet::m_mainWindow, KNotification::CloseOnTimeout);  if (transfer->error().type == \
Job::ManualSolve) {  m_notifications.insert(notification, transfer);


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

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