aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/filehandler.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/filehandler.cpp
parentaab2b50efa1298ba8a5dd1f21f05c306ee8ea4d1 (diff)
downloadkristall-502219103193c850604110bbfe5e0c456df980bc.tar.gz
mark more strings for translation
Diffstat (limited to 'src/protocols/filehandler.cpp')
-rw-r--r--src/protocols/filehandler.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}