aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/filehandler.cpp
diff options
context:
space:
mode:
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;
}