summaryrefslogtreecommitdiffstats
path: root/src/core/file_picker_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_picker_controller.cpp')
-rw-r--r--src/core/file_picker_controller.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/file_picker_controller.cpp b/src/core/file_picker_controller.cpp
index 02d40a054..1494d8aae 100644
--- a/src/core/file_picker_controller.cpp
+++ b/src/core/file_picker_controller.cpp
@@ -45,6 +45,7 @@
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/file_select_listener.h"
+#include <QtCore/qcoreapplication.h>
#include <QDir>
#include <QFileInfo>
#include <QMimeDatabase>
@@ -276,7 +277,10 @@ QStringList FilePickerController::nameFilters(const QStringList &acceptedMimeTyp
}
}
- nameFilters.prepend(QObject::tr("Accepted types") + " (" + acceptedGlobs.join(" ") + ")");
+ const QString filter =
+ QCoreApplication::translate("FilePickerController",
+ "Accepted types (%1)").arg(acceptedGlobs.join(' '));
+ nameFilters.prepend(filter);
return nameFilters;
}