aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/abouthandler.cpp
diff options
context:
space:
mode:
authorOIS <mistresssilvara@hotmail.com>2021-03-16 22:48:37 +0700
committerFelix Queißner <felix@ib-queissner.de>2021-03-16 21:04:07 +0100
commit502219103193c850604110bbfe5e0c456df980bc (patch)
tree1d81b2b92f106497dd0030f442b724027820e0f3 /src/protocols/abouthandler.cpp
parentaab2b50efa1298ba8a5dd1f21f05c306ee8ea4d1 (diff)
downloadkristall-502219103193c850604110bbfe5e0c456df980bc.tar.gz
mark more strings for translation
Diffstat (limited to 'src/protocols/abouthandler.cpp')
-rw-r--r--src/protocols/abouthandler.cpp8
1 files changed, 4 insertions, 4 deletions
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;