Commit d4e917ee authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Mark error messages for translation

Those are shown to the user so they should be translated.

Use the lazy variant since they are shown via the same codepath that handles the errors from the helper which have to use the lazy variant
parent d6d13d38
Pipeline #215507 passed with stage
in 2 minutes and 8 seconds
......@@ -26,6 +26,7 @@
#include <KAuthExecuteJob>
#endif
#include <KIO/ApplicationLauncherJob>
#include <KLazyLocalizedString>
#include <KLocalizedString>
#include <KPluginFactory>
#include <KService>
......@@ -166,7 +167,7 @@ void SddmKcm::synchronizeSettings()
// QDir returns "." and true for exists() in the case of a non-existent user;
QString sddmHomeDirPath = KUser("sddm").homeDir();
if (sddmHomeDirPath.isEmpty()) {
Q_EMIT errorOccured(QStringLiteral("Cannot proceed, user 'sddm' does not exist. Please check your SDDM install."));
Q_EMIT errorOccured(kli18n("Cannot proceed, user 'sddm' does not exist. Please check your SDDM install.").untranslatedText());
return;
}
......@@ -283,7 +284,7 @@ void SddmKcm::resetSyncronizedSettings()
// QDir returns "." and true for exists() in the case of a non-existent user
QString sddmHomeDirPath = KUser("sddm").homeDir();
if (sddmHomeDirPath.isEmpty()) {
Q_EMIT errorOccured(QStringLiteral("Cannot proceed, user 'sddm' does not exist. Please check your SDDM install."));
Q_EMIT errorOccured(kli18n("Cannot proceed, user 'sddm' does not exist. Please check your SDDM install.").untranslatedText());
return;
}
......
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