diff --git a/src/presentation/errorhandler.cpp b/src/presentation/errorhandler.cpp --- a/src/presentation/errorhandler.cpp +++ b/src/presentation/errorhandler.cpp @@ -23,6 +23,7 @@ #include "errorhandler.h" +#include #include #include "utils/jobhandler.h" @@ -44,6 +45,6 @@ void ErrorHandler::displayMessage(KJob *job, const QString &message) { if (job->error() != KJob::NoError) { - doDisplayMessage(QStringLiteral("%1: %2").arg(message, job->errorString())); + doDisplayMessage(QCoreApplication::translate("ErrorHandler", "%1: %2").arg(message, job->errorString())); } } diff --git a/src/widgets/applicationcomponents.cpp b/src/widgets/applicationcomponents.cpp --- a/src/widgets/applicationcomponents.cpp +++ b/src/widgets/applicationcomponents.cpp @@ -52,7 +52,7 @@ auto moveItemAction = new QAction(this); moveItemAction->setObjectName(QStringLiteral("moveItemAction")); - moveItemAction->setText("Move item"); + moveItemAction->setText(tr("Move item")); moveItemAction->setShortcut(Qt::Key_M); connect(moveItemAction, &QAction::triggered, this, &ApplicationComponents::onMoveItemsRequested); diff --git a/src/widgets/itemdelegate.cpp b/src/widgets/itemdelegate.cpp --- a/src/widgets/itemdelegate.cpp +++ b/src/widgets/itemdelegate.cpp @@ -92,7 +92,7 @@ } if (task->delegate().isValid()) { - opt.text = QStringLiteral("(%1) %2").arg(task->delegate().display(), opt.text); + opt.text = tr("(%1) %2").arg(task->delegate().display(), opt.text); opt.font.setItalic(true); } } diff --git a/src/widgets/quickselectdialog.cpp b/src/widgets/quickselectdialog.cpp --- a/src/widgets/quickselectdialog.cpp +++ b/src/widgets/quickselectdialog.cpp @@ -44,7 +44,7 @@ m_label(new QLabel(this)), m_tree(new QTreeView(this)) { - setWindowTitle("Quick Select Dialog"); + setWindowTitle(tr("Quick Select Dialog")); m_label->setText(tr("You can start typing to filter the list of available pages")); m_filterProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); @@ -86,7 +86,7 @@ if (textFilter.isEmpty()) m_label->setText(tr("You can start typing to filter the list of available pages")); else - m_label->setText(QString("Path: %1").arg(textFilter)); + m_label->setText(tr("Path: %1").arg(textFilter)); m_filterProxyModel->setFilterFixedString(textFilter); m_tree->expandAll();