Group :: Graphical desktop/KDE
RPM: sddm
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: alt-translate-renew-dialog.patch
Download
Download
diff --git a/src/auth/AuthRequest.cpp b/src/auth/AuthRequest.cpp
index abf6049..7348a3b 100644
--- a/src/auth/AuthRequest.cpp
+++ b/src/auth/AuthRequest.cpp
@@ -117,7 +117,7 @@ namespace SDDM {
QString AuthRequest::findNewPwdMessage() {
for (const AuthPrompt* qap : qAsConst(d->prompts)) {
if(qap->type()==AuthPrompt::CHANGE_NEW)
- return qap->message();
+ return tr(qap->message().toLatin1().constData());
}
return QString();
}
@@ -125,7 +125,7 @@ namespace SDDM {
QString AuthRequest::findRepeatPwdMessage() {
for (const AuthPrompt* qap : qAsConst(d->prompts)) {
if(qap->type()==AuthPrompt::CHANGE_REPEAT)
- return qap->message();
+ return tr(qap->message().toLatin1().constData());
}
return QString();
}
diff --git a/src/helper/backend/PamBackend.cpp b/src/helper/backend/PamBackend.cpp
index 68582e5..0b0095e 100644
--- a/src/helper/backend/PamBackend.cpp
+++ b/src/helper/backend/PamBackend.cpp
@@ -31,28 +31,28 @@
namespace SDDM {
static Request loginRequest {
- { { AuthPrompt::LOGIN_USER, QStringLiteral("login:"), false },
- { AuthPrompt::LOGIN_USER, QStringLiteral("учетная запись:"), false },
- { AuthPrompt::LOGIN_PASSWORD, QStringLiteral("Password: "), true },
- { AuthPrompt::LOGIN_PASSWORD, QStringLiteral("Пароль: "), true }
+ { { AuthPrompt::LOGIN_USER, QT_TR_NOOP(QStringLiteral("login:")), false },
+ { AuthPrompt::LOGIN_USER, QStringLiteral("учетная запись:"), false },
+ { AuthPrompt::LOGIN_PASSWORD, QT_TR_NOOP(QStringLiteral("Password: ")), true },
+ { AuthPrompt::LOGIN_PASSWORD, QStringLiteral("Пароль: "), true }
}
};
static Request changePassRequest {
- { { AuthPrompt::CHANGE_CURRENT, QStringLiteral("(current) UNIX password: "), true },
- { AuthPrompt::CHANGE_CURRENT, QStringLiteral("(текущий) пароль UNIX: "), true },
- { AuthPrompt::CHANGE_NEW, QStringLiteral("New password: "), true },
- { AuthPrompt::CHANGE_NEW, QStringLiteral("Новый пароль: "), true },
- { AuthPrompt::CHANGE_REPEAT, QStringLiteral("Retype new password: "), true },
- { AuthPrompt::CHANGE_REPEAT, QStringLiteral("Повторите ввод пароля: "), true }
+ { { AuthPrompt::CHANGE_CURRENT, QT_TR_NOOP(QStringLiteral("(current) UNIX password: ")), true },
+ { AuthPrompt::CHANGE_CURRENT, QStringLiteral("(текущий) пароль UNIX: "), true },
+ { AuthPrompt::CHANGE_NEW, QT_TR_NOOP(QStringLiteral("New password: ")), true },
+ { AuthPrompt::CHANGE_NEW, QStringLiteral("Новый пароль: "), true },
+ { AuthPrompt::CHANGE_REPEAT, QT_TR_NOOP(QStringLiteral("Retype new password: ")), true },
+ { AuthPrompt::CHANGE_REPEAT, QStringLiteral("Повторите ввод пароля: "), true }
}
};
static Request changePassNoOldRequest {
- { { AuthPrompt::CHANGE_NEW, QStringLiteral("New password: "), true },
- { AuthPrompt::CHANGE_NEW, QStringLiteral("Новый пароль: "), true },
- { AuthPrompt::CHANGE_REPEAT, QStringLiteral("Retype new password: "), true },
- { AuthPrompt::CHANGE_REPEAT, QStringLiteral("Повторите ввод пароля: "), true }
+ { { AuthPrompt::CHANGE_NEW, QT_TR_NOOP(QStringLiteral("New password: ")), true },
+ { AuthPrompt::CHANGE_NEW, QStringLiteral("Новый пароль: "), true },
+ { AuthPrompt::CHANGE_REPEAT, QT_TR_NOOP(QStringLiteral("Retype new password: ")), true },
+ { AuthPrompt::CHANGE_REPEAT, QStringLiteral("Повторите ввод пароля: "), true }
}
};