From 502219103193c850604110bbfe5e0c456df980bc Mon Sep 17 00:00:00 2001 From: OIS Date: Tue, 16 Mar 2021 22:48:37 +0700 Subject: mark more strings for translation --- src/protocols/abouthandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/protocols/abouthandler.cpp') diff --git a/src/protocols/abouthandler.cpp b/src/protocols/abouthandler.cpp index 13bc098..999de87 100644 --- a/src/protocols/abouthandler.cpp +++ b/src/protocols/abouthandler.cpp @@ -52,7 +52,7 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions else if (url.path() == "cache") { QByteArray document; - document.append("# Cache information\n"); + document.append(tr("# Cache information\n")); auto& cache = kristall::globals().cache.getPages(); long unsigned cache_usage = 0; @@ -63,9 +63,9 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions } document.append(QString( - "In-memory cache usage:\n" + tr("In-memory cache usage:\n" "* %1 used\n" - "* %2 pages in cache\n") + "* %2 pages in cache\n")) .arg(IoUtil::size_human(cache_usage), QString::number(cached_count)).toUtf8()); emit this->requestComplete(document, "text/gemini"); @@ -79,7 +79,7 @@ bool AboutHandler::startRequest(const QUrl &url, ProtocolHandler::RequestOptions } else { - emit this->networkError(ResourceNotFound, "The requested resource does not exist."); + emit this->networkError(ResourceNotFound, QObject::tr("The requested resource does not exist.")); } } return true; -- cgit v1.2.3