Commit 1f413867 authored by Jan Grulich's avatar Jan Grulich
Browse files

Some strings can be translatable

parent d82b750a
......@@ -22,6 +22,8 @@
#include <QLoggingCategory>
#include <KLocalizedString>
Q_LOGGING_CATEGORY(XdgDesktopPortalKdeAppChooser, "xdg-desktop-portal-kde-app-chooser")
......@@ -72,8 +74,8 @@ uint AppChooser::chooseApplication(const QDBusObjectPath& handle,
// TODO implement heading
AppChooserDialog *appDialog = new AppChooserDialog(choices);
appDialog->setLabelText(acceptLabel.isEmpty() ? QLatin1String("Select") : acceptLabel);
appDialog->setWindowTitle(title.isEmpty() ? QLatin1String("Select application") : title);
appDialog->setLabelText(acceptLabel.isEmpty() ? i18n("Select") : acceptLabel);
appDialog->setWindowTitle(title.isEmpty() ? i18n("Select application") : title);
if (!latestChoice.isEmpty()) {
appDialog->setSelectedApplication(latestChoice);
......
......@@ -24,6 +24,7 @@
#include <QDBusArgument>
#include <QLoggingCategory>
#include <QFileDialog>
#include <KLocalizedString>
Q_LOGGING_CATEGORY(XdgDesktopPortalKdeFileChooser, "xdg-desktop-portal-kde-file-chooser")
......@@ -155,7 +156,7 @@ uint FileChooser::openFile(const QDBusObjectPath &handle,
fileDialog->setWindowTitle(title);
fileDialog->setModal(modalDialog);
fileDialog->setFileMode(multipleFiles ? QFileDialog::ExistingFiles : QFileDialog::ExistingFile);
fileDialog->setLabelText(QFileDialog::Accept, !acceptLabel.isEmpty() ? acceptLabel : QLatin1String("Open"));
fileDialog->setLabelText(QFileDialog::Accept, !acceptLabel.isEmpty() ? acceptLabel : i18n("Open"));
if (!nameFilters.isEmpty()) {
fileDialog->setNameFilters(nameFilters);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment