Commit 94794350 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix i18n usage

parent c143d698
......@@ -257,7 +257,8 @@ void KAccessConfig::launchOrcaConfiguration()
QStringList gsettingArgs = { "set", "org.gnome.desktop.a11y.applications", "screen-reader-enabled", "true" };
int ret = QProcess::execute("gsettings", gsettingArgs);
if (ret) {
ui.orcaLaunchFeedbackLabel->setText(i18n("Could not set gsettings for Orca: \"%1\" failed").arg(QLatin1String("gsettings ") + gsettingArgs.join(' ')));
const QString errorStr = QLatin1String("gsettings ") + gsettingArgs.join(QLatin1Char(' '));
ui.orcaLaunchFeedbackLabel->setText(i18n("Could not set gsettings for Orca: \"%1\" failed", errorStr));
return;
}
......
......@@ -219,7 +219,7 @@ void FolderSelectionWidget::slotAddButtonClicked()
if (existingUrl == url) {
QString name = QUrl::fromLocalFile(url).fileName();
showMessage(i18n("Folder %1 is already excluded").arg(name));
showMessage(i18n("Folder %1 is already excluded", name));
deleteList << item;
continue;
......@@ -240,7 +240,7 @@ void FolderSelectionWidget::slotAddButtonClicked()
deleteList << item;
QString name = QUrl::fromLocalFile(url).adjusted(QUrl::StripTrailingSlash).fileName();
showMessage(i18n("Folder's parent %1 is already excluded").arg(name));
showMessage(i18n("Folder's parent %1 is already excluded", name));
}
}
}
......
Supports Markdown
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