Téléverser les fichiers vers "workstation-setup/src"
This commit is contained in:
@@ -248,25 +248,29 @@ void ProvisioningBackend::handleHelperStdout(Operation operation, const QByteArr
|
||||
|
||||
bool changed = false;
|
||||
if (line == QByteArrayLiteral("EVENT_FIDO_INITIALIZING")) {
|
||||
m_fidoTouchRequired = false;
|
||||
m_fidoStatus = QStringLiteral("Initialisation de l'association FIDO2…");
|
||||
m_fidoTouchRequired = true;
|
||||
++m_fidoTouchRequestCount;
|
||||
m_fidoStatus = QStringLiteral("Touchez la YubiKey dès qu’elle clignote. Plusieurs touchers peuvent être demandés pendant cette étape. (%1)")
|
||||
.arg(m_fidoTouchRequestCount);
|
||||
changed = true;
|
||||
} else if (line == QByteArrayLiteral("EVENT_FIDO_GENERATING")) {
|
||||
m_fidoTouchRequired = false;
|
||||
m_fidoStatus = QStringLiteral("Génération du secret FIDO2…");
|
||||
m_fidoTouchRequired = true;
|
||||
++m_fidoTouchRequestCount;
|
||||
m_fidoStatus = QStringLiteral("Touchez de nouveau la YubiKey dès qu’elle clignote. (%1)")
|
||||
.arg(m_fidoTouchRequestCount);
|
||||
changed = true;
|
||||
} else if (line == QByteArrayLiteral("EVENT_FIDO_UPDATING_HOME")) {
|
||||
m_fidoTouchRequired = false;
|
||||
m_fidoStatus = QStringLiteral("Mise à jour du home chiffré…");
|
||||
m_fidoStatus = QStringLiteral("Mise à jour de votre espace personnel…");
|
||||
changed = true;
|
||||
} else if (line == QByteArrayLiteral("EVENT_FIDO_SYNCHRONIZING")) {
|
||||
m_fidoTouchRequired = false;
|
||||
m_fidoStatus = QStringLiteral("Synchronisation des clés de chiffrement…");
|
||||
m_fidoStatus = QStringLiteral("Finalisation de la protection…");
|
||||
changed = true;
|
||||
} else if (line == QByteArrayLiteral("EVENT_FIDO_TOUCH_REQUIRED")) {
|
||||
m_fidoTouchRequired = true;
|
||||
++m_fidoTouchRequestCount;
|
||||
m_fidoStatus = QStringLiteral("Touchez la YubiKey maintenant — demande %1. Il peut y avoir plusieurs touchers pendant cette étape.")
|
||||
m_fidoStatus = QStringLiteral("Touchez la YubiKey maintenant. Plusieurs touchers peuvent être demandés pendant cette étape. (%1)")
|
||||
.arg(m_fidoTouchRequestCount);
|
||||
changed = true;
|
||||
}
|
||||
@@ -373,7 +377,7 @@ void ProvisioningBackend::initializePin(const QString &newPin,
|
||||
return;
|
||||
}
|
||||
if (m_pinDone) {
|
||||
emit pinChangeFinished(true, QStringLiteral("Le PIN FIDO2 a déjà été initialisé."));
|
||||
emit pinChangeFinished(true, QStringLiteral("Le code PIN de la YubiKey a déjà été initialisé."));
|
||||
return;
|
||||
}
|
||||
if (newPin.size() < 4 || confirmation.size() < 4) {
|
||||
@@ -407,15 +411,15 @@ void ProvisioningBackend::enrollFido(const QString ¤tPassword,
|
||||
return;
|
||||
}
|
||||
if (!m_passwordDone || !m_pinDone) {
|
||||
emit fidoEnrollmentFinished(false, QStringLiteral("Le mot de passe et le PIN doivent être configurés avant l'association FIDO2."));
|
||||
emit fidoEnrollmentFinished(false, QStringLiteral("Le mot de passe et le code PIN doivent être configurés avant d'associer la YubiKey."));
|
||||
return;
|
||||
}
|
||||
if (m_fidoDone) {
|
||||
emit fidoEnrollmentFinished(true, QStringLiteral("La YubiKey est déjà associée au home chiffré."));
|
||||
emit fidoEnrollmentFinished(true, QStringLiteral("La YubiKey est déjà associée à votre espace personnel."));
|
||||
return;
|
||||
}
|
||||
if (currentPassword.isEmpty() || pin.size() < 4) {
|
||||
emit fidoEnrollmentFinished(false, QStringLiteral("Saisissez votre mot de passe actuel et le PIN de la YubiKey."));
|
||||
emit fidoEnrollmentFinished(false, QStringLiteral("Saisissez votre mot de passe actuel et le code PIN de la YubiKey."));
|
||||
return;
|
||||
}
|
||||
if (containsLineBreak(currentPassword) || containsLineBreak(pin)) {
|
||||
@@ -424,7 +428,7 @@ void ProvisioningBackend::enrollFido(const QString ¤tPassword,
|
||||
}
|
||||
|
||||
resetFidoInteraction();
|
||||
m_fidoStatus = QStringLiteral("Préparation de l'association FIDO2…");
|
||||
m_fidoStatus = QStringLiteral("Préparation de l'association de la YubiKey…");
|
||||
emit fidoInteractionChanged();
|
||||
|
||||
startHelper(Operation::Fido,
|
||||
@@ -558,20 +562,20 @@ void ProvisioningBackend::startHelper(Operation operation,
|
||||
case Operation::Password:
|
||||
markerCreated = createMarker(passwordMarker());
|
||||
message = markerCreated
|
||||
? QStringLiteral("Votre nouveau mot de passe protège maintenant votre home chiffré.")
|
||||
? QStringLiteral("Votre nouveau mot de passe protège maintenant votre espace personnel.")
|
||||
: QStringLiteral("Le mot de passe a été modifié mais l'état local n'a pas pu être enregistré.");
|
||||
break;
|
||||
case Operation::Pin:
|
||||
markerCreated = createMarker(pinMarker());
|
||||
message = markerCreated
|
||||
? QStringLiteral("Le PIN FIDO2 de votre YubiKey est maintenant initialisé.")
|
||||
? QStringLiteral("Le code PIN de votre YubiKey est maintenant initialisé.")
|
||||
: QStringLiteral("Le PIN a été créé mais l'état local n'a pas pu être enregistré.");
|
||||
break;
|
||||
case Operation::Fido:
|
||||
markerCreated = createMarker(fidoMarker());
|
||||
message = markerCreated
|
||||
? QStringLiteral("Votre YubiKey peut maintenant déverrouiller votre home chiffré.")
|
||||
: QStringLiteral("La YubiKey a été enrôlée mais l'état local n'a pas pu être enregistré.");
|
||||
? QStringLiteral("Votre YubiKey peut maintenant ouvrir votre espace personnel chiffré.")
|
||||
: QStringLiteral("La YubiKey a été associée mais l'état local n'a pas pu être enregistré.");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
@@ -602,8 +606,8 @@ void ProvisioningBackend::startHelper(Operation operation,
|
||||
if (operation == Operation::Fido) {
|
||||
m_fidoTouchRequired = false;
|
||||
m_fidoStatus = helperSucceeded && markerCreated
|
||||
? QStringLiteral("Association FIDO2 terminée.")
|
||||
: QStringLiteral("Association FIDO2 interrompue.");
|
||||
? QStringLiteral("Association de la YubiKey terminée.")
|
||||
: QStringLiteral("Association de la YubiKey interrompue.");
|
||||
emit fidoInteractionChanged();
|
||||
}
|
||||
|
||||
@@ -622,7 +626,7 @@ QString ProvisioningBackend::safeMessageForFailure(Operation operation,
|
||||
|
||||
if (timedOut || exitCode == 124 || output.contains(QStringLiteral("timeout"))) {
|
||||
if (operation == Operation::Fido) {
|
||||
return QStringLiteral("L'association FIDO2 a expiré. Laissez la YubiKey branchée et touchez-la lorsqu'elle clignote.");
|
||||
return QStringLiteral("L'association de la YubiKey a expiré. Laissez-la branchée et recommencez l'opération.");
|
||||
}
|
||||
return QStringLiteral("L'opération a expiré avant de pouvoir être terminée.");
|
||||
}
|
||||
@@ -634,45 +638,45 @@ QString ProvisioningBackend::safeMessageForFailure(Operation operation,
|
||||
if (output.contains(QStringLiteral("new_rejected"))) {
|
||||
return QStringLiteral("Le nouveau mot de passe a été refusé par la politique de sécurité.");
|
||||
}
|
||||
return QStringLiteral("Le mot de passe n'a pas pu être modifié par systemd-homed.");
|
||||
return QStringLiteral("Le mot de passe n'a pas pu être modifié.");
|
||||
}
|
||||
|
||||
if (operation == Operation::Pin) {
|
||||
if (output.contains(QStringLiteral("pin_already_configured"))) {
|
||||
return QStringLiteral("Cette YubiKey possède déjà un PIN FIDO2. Utilisez une YubiKey vierge ou réinitialisée.");
|
||||
return QStringLiteral("Cette YubiKey possède déjà un code PIN. Utilisez une YubiKey vierge ou réinitialisée.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("pin_auth_blocked"))) {
|
||||
return QStringLiteral("Les opérations PIN sont temporairement bloquées. Débranchez puis rebranchez la YubiKey.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("pin_blocked"))) {
|
||||
return QStringLiteral("Le PIN FIDO2 est bloqué. La YubiKey doit être réinitialisée avant provisioning.");
|
||||
return QStringLiteral("Le code PIN est bloqué. La YubiKey doit être réinitialisée avant de recommencer.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("multiple_yubikey"))) {
|
||||
return QStringLiteral("Plusieurs clés FIDO2 sont détectées. Ne laissez branchée que la YubiKey d'Alice.");
|
||||
return QStringLiteral("Plusieurs clés de sécurité sont détectées. Ne laissez branchée que votre YubiKey.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("no_yubikey"))) {
|
||||
return QStringLiteral("Aucune YubiKey FIDO2 compatible n'a été détectée.");
|
||||
return QStringLiteral("Aucune YubiKey compatible n'a été détectée.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("pin_policy"))) {
|
||||
return QStringLiteral("Le PIN choisi ne respecte pas la politique FIDO2 de la YubiKey.");
|
||||
return QStringLiteral("Le code PIN choisi n'est pas accepté par la YubiKey.");
|
||||
}
|
||||
return QStringLiteral("Le PIN FIDO2 n'a pas pu être initialisé.");
|
||||
return QStringLiteral("Le code PIN de la YubiKey n'a pas pu être initialisé.");
|
||||
}
|
||||
|
||||
if (output.contains(QStringLiteral("fido_bad_password"))) {
|
||||
return QStringLiteral("Le mot de passe personnel fourni est incorrect ou insuffisant pour mettre à jour le home.");
|
||||
return QStringLiteral("Le mot de passe fourni est incorrect.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("fido_bad_pin"))) {
|
||||
return QStringLiteral("Le PIN de la YubiKey est incorrect. Ne réessayez pas plusieurs fois : vérifiez le PIN avant une nouvelle tentative.");
|
||||
return QStringLiteral("Le code PIN de la YubiKey est incorrect. Vérifiez-le avant une nouvelle tentative.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("multiple_yubikey"))) {
|
||||
return QStringLiteral("Plusieurs clés FIDO2 sont détectées. Ne laissez branchée que la YubiKey d'Alice.");
|
||||
return QStringLiteral("Plusieurs clés de sécurité sont détectées. Ne laissez branchée que votre YubiKey.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("no_yubikey"))) {
|
||||
return QStringLiteral("Aucune YubiKey FIDO2 compatible n'a été détectée.");
|
||||
return QStringLiteral("Aucune YubiKey compatible n'a été détectée.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("fido_enroll_failed"))) {
|
||||
return QStringLiteral("La YubiKey n'a pas pu être associée au home. Vérifiez le mot de passe, le PIN et touchez la clé lorsqu'elle clignote.");
|
||||
return QStringLiteral("La YubiKey n'a pas pu être associée à votre espace personnel. Vérifiez le mot de passe et le code PIN.");
|
||||
}
|
||||
return QStringLiteral("L'association FIDO2 au home chiffré a échoué.");
|
||||
return QStringLiteral("L'association de la YubiKey à votre espace personnel a échoué.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user