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/filehandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/protocols/filehandler.cpp') diff --git a/src/protocols/filehandler.cpp b/src/protocols/filehandler.cpp index 9e76dcd..f352fa4 100644 --- a/src/protocols/filehandler.cpp +++ b/src/protocols/filehandler.cpp @@ -35,7 +35,7 @@ bool FileHandler::startRequest(const QUrl &url, RequestOptions options) // URL points to directory - we create Gemtext // page which lists contents of directory. QString page; - page += QString("# Index of %1\n").arg(url.path()); + page += QString(tr("# Index of %1\n")).arg(url.path()); auto filters = QDir::Dirs | QDir::Files | QDir::NoDot; if (kristall::globals().options.show_hidden_files_in_dirs) filters |= QDir::Hidden; @@ -45,7 +45,7 @@ bool FileHandler::startRequest(const QUrl &url, RequestOptions options) for (unsigned i = 0; i < dir.count(); ++i) { // Add link to page. - page += QString("=> file://%1 %2\n") + page += QString(tr("=> file://%1 %2\n")) .arg(QUrl(dir.filePath(dir[i])).toString(QUrl::FullyEncoded), dir[i]); } @@ -54,7 +54,7 @@ bool FileHandler::startRequest(const QUrl &url, RequestOptions options) } else { - emit this->networkError(ResourceNotFound, "The requested file does not exist!"); + emit this->networkError(ResourceNotFound, QObject::tr("The requested file does not exist!")); } return true; } -- cgit v1.2.3