translation

This commit is contained in:
Roland Gruber 2020-08-07 22:07:47 +02:00
parent df0e02da9f
commit 598fa546a9
7 changed files with 1395 additions and 1200 deletions

View File

@ -606,7 +606,7 @@ class WebauthnProvider extends BaseProvider {
return $webauthnManager->storeNewRegistration($registrationObject, $response);
}
else {
logNewMessage(LOG_DEBUG, 'Checking webauthn response of ' . $userDn);
logNewMessage(LOG_DEBUG, 'Checking WebAuthn response of ' . $userDn);
$response = base64_decode($_POST['sig_response']);
return $webauthnManager->isValidAuthentication($response, $userDn);
}

View File

@ -1508,7 +1508,7 @@ function getDefaultLDAPErrorString($server) {
}
elseif (strpos($extError, 'data 532,') !== false) {
logNewMessage(LOG_DEBUG, 'Login failed because of ' . $extError);
$extError = _('Password is expired');
$extError = _('Password expired');
}
elseif (strpos($extError, 'data 533,') !== false) {
logNewMessage(LOG_DEBUG, 'Login failed because of ' . $extError);

View File

@ -523,7 +523,7 @@ class PDFStructureWriter {
}
$baseDir = __DIR__ . '/../config/pdf/' . $this->serverProfileName;
if(!is_writable($baseDir)) {
throw new \LAMException(_('Could not save PDF structure, access denied to ' . $baseDir . '.'));
throw new \LAMException(sprintf(_('Could not save PDF structure, access denied to %s.'), $baseDir));
}
return $baseDir . '/' . $name . '.' . $typeId . '.xml';
}

View File

@ -121,7 +121,7 @@ class WebauthnManager {
$authenticatorSelectionCriteria,
PublicKeyCredentialCreationOptions::ATTESTATION_CONVEYANCE_PREFERENCE_NONE,
new AuthenticationExtensionsClientInputs());
logNewMessage(LOG_DEBUG, 'Webauthn registration: ' . json_encode($registrationObject));
logNewMessage(LOG_DEBUG, 'WebAuthn registration: ' . json_encode($registrationObject));
return $registrationObject;
}
@ -158,7 +158,7 @@ class WebauthnManager {
return true;
}
catch (\Throwable $exception) {
logNewMessage(LOG_ERR, 'Webauthn validation failed: ' . $exception->getMessage() . $exception->getTraceAsString());
logNewMessage(LOG_ERR, 'WebAuthn validation failed: ' . $exception->getMessage() . $exception->getTraceAsString());
}
return false;
}
@ -456,7 +456,7 @@ class PublicKeyCredentialSourceRepositorySQLite implements PublicKeyCredentialSo
}
}
catch (\PDOException $e) {
logNewMessage(LOG_ERR, 'Webauthn database error: ' . $e->getMessage());
logNewMessage(LOG_ERR, 'WebAuthn database error: ' . $e->getMessage());
}
return null;
}
@ -480,7 +480,7 @@ class PublicKeyCredentialSourceRepositorySQLite implements PublicKeyCredentialSo
}
}
catch (\PDOException $e) {
logNewMessage(LOG_ERR, 'Webauthn database error: ' . $e->getMessage());
logNewMessage(LOG_ERR, 'WebAuthn database error: ' . $e->getMessage());
}
return $credentials;
}

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,7 @@ echo "<form id='webauthnform' action=\"webauthn.php\" method=\"post\">\n";
$tabindex = 1;
$container = new htmlResponsiveRow();
$container->add(new htmlTitle(_("Webauthn devices")), 12);
$container->add(new htmlTitle(_("WebAuthn devices")), 12);
$webauthnManager = new WebauthnManager();
@ -76,7 +76,7 @@ $container->addVerticalSpacer('0.5rem');
$container->add(new htmlHiddenInput('registrationData', ''), 12);
$errorMessageDiv = new htmlDiv('generic-webauthn-error', new htmlOutputText(''));
$errorMessageDiv->addDataAttribute('button', _('Ok'));
$errorMessageDiv->addDataAttribute('title', _('Webauthn failed'));
$errorMessageDiv->addDataAttribute('title', _('WebAuthn failed'));
$container->add($errorMessageDiv, 12);
$buttonGroup = new htmlGroup();
$registerButton = new htmlButton('register', _('Register new device'));