Commit c596517c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Follow BinaryUnitDialect option

CCBUG: 454182
parent 431fa01c
Pipeline #179869 passed with stage
in 3 minutes and 2 seconds
......@@ -17,7 +17,7 @@
#include <KLocalizedString>
#include <KFormat>
#include <KIO/Global>
using namespace Syndication;
using namespace Akregator;
......@@ -37,11 +37,11 @@ QString ArticleFormatter::formatEnclosure(const Enclosure &enclosure)
const QString type = enclosure.type();
QString inf;
if (!type.isEmpty() && length > 0) {
inf = i18n("(%1, %2)", type, KFormat().formatByteSize(length));
inf = i18n("(%1, %2)", type, KIO::convertSize(length));
} else if (!type.isNull()) {
inf = type;
} else if (length > 0) {
inf = KFormat().formatByteSize(length);
inf = KIO::convertSize(length);
}
const QString str = QStringLiteral("<a href=\"%1\">%2</a> %3").arg(enclosure.url(), title, inf);
return str;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment