From 0d59d2498961c6b1db59f81657f89e21a08c1450 Mon Sep 17 00:00:00 2001
From: Jens L
Date: Wed, 15 Nov 2023 16:28:56 +0100
Subject: [PATCH] web/admin: fix incorrectly encoded chars in translation
(#7580)
Signed-off-by: Jens Langhammer
---
.../policies/password/PasswordPolicyForm.ts | 29 +++--
web/xliff/de.xlf | 31 +++---
web/xliff/en.xlf | 35 +++---
web/xliff/es.xlf | 30 ++---
web/xliff/fr.xlf | 104 ++++++++----------
web/xliff/pl.xlf | 30 ++---
web/xliff/pseudo-LOCALE.xlf | 40 +++----
web/xliff/tr.xlf | 30 ++---
web/xliff/zh-Hans.xlf | 86 +++++++--------
web/xliff/zh-Hant.xlf | 30 ++---
web/xliff/zh_TW.xlf | 30 ++---
11 files changed, 218 insertions(+), 257 deletions(-)
diff --git a/web/src/admin/policies/password/PasswordPolicyForm.ts b/web/src/admin/policies/password/PasswordPolicyForm.ts
index 126d7386b..96183b077 100644
--- a/web/src/admin/policies/password/PasswordPolicyForm.ts
+++ b/web/src/admin/policies/password/PasswordPolicyForm.ts
@@ -22,17 +22,14 @@ export class PasswordPolicyForm extends ModelForm {
@state()
showZxcvbn = false;
- loadInstance(pk: string): Promise {
- return new PoliciesApi(DEFAULT_CONFIG)
- .policiesPasswordRetrieve({
- policyUuid: pk,
- })
- .then((policy) => {
- this.showStatic = policy.checkStaticRules || false;
- this.showHIBP = policy.checkHaveIBeenPwned || false;
- this.showZxcvbn = policy.checkZxcvbn || false;
- return policy;
- });
+ async loadInstance(pk: string): Promise {
+ const policy = await new PoliciesApi(DEFAULT_CONFIG).policiesPasswordRetrieve({
+ policyUuid: pk,
+ });
+ this.showStatic = policy.checkStaticRules || false;
+ this.showHIBP = policy.checkHaveIBeenPwned || false;
+ this.showZxcvbn = policy.checkZxcvbn || false;
+ return policy;
}
getSuccessMessage(): string {
@@ -200,26 +197,26 @@ export class PasswordPolicyForm extends ModelForm {
)}
- ${msg("0: Too guessable: risky password. (guesses < 10^3)")}
+ ${msg("0: Too guessable: risky password. (guesses < 10^3)")}
${msg(
- "1: Very guessable: protection from throttled online attacks. (guesses < 10^6)",
+ "1: Very guessable: protection from throttled online attacks. (guesses < 10^6)",
)}
${msg(
- "2: Somewhat guessable: protection from unthrottled online attacks. (guesses < 10^8)",
+ "2: Somewhat guessable: protection from unthrottled online attacks. (guesses < 10^8)",
)}
${msg(
- "3: Safely unguessable: moderate protection from offline slow-hash scenario. (guesses < 10^10)",
+ "3: Safely unguessable: moderate protection from offline slow-hash scenario. (guesses < 10^10)",
)}
${msg(
- "4: Very unguessable: strong protection from offline slow-hash scenario. (guesses >= 10^10)",
+ "4: Very unguessable: strong protection from offline slow-hash scenario. (guesses >= 10^10)",
)}
diff --git a/web/xliff/de.xlf b/web/xliff/de.xlf
index fb09939a9..aa0b11fcd 100644
--- a/web/xliff/de.xlf
+++ b/web/xliff/de.xlf
@@ -1954,22 +1954,6 @@
If the password's score is less than or equal this value, the policy will fail.
-
- 0: Too guessable: risky password. (guesses < 10^3)
- Riskantes Passwort, einfach zu erraten. (Anzahl Versuche < 10^3)
-
-
- 1: Very guessable: protection from throttled online attacks. (guesses < 10^6)
-
-
- 2: Somewhat guessable: protection from unthrottled online attacks. (guesses < 10^8)
-
-
- 3: Safely unguessable: moderate protection from offline slow-hash scenario. (guesses < 10^10)
-
-
- 4: Very unguessable: strong protection from offline slow-hash scenario. (guesses >= 10^10)
-
Checks the value from the policy request against several rules, mostly used to ensure password strength.
Überprüft den Wert aus der Richtlinienanforderung anhand mehrerer Regeln, die hauptsächlich zur Gewährleistung der Kennwortstärke verwendet werden.
@@ -6064,6 +6048,21 @@ Bindings to groups/users are checked against the user of the event.
Connectivity
+
+
+ 0: Too guessable: risky password. (guesses < 10^3)
+
+
+ 1: Very guessable: protection from throttled online attacks. (guesses < 10^6)
+
+
+ 2: Somewhat guessable: protection from unthrottled online attacks. (guesses < 10^8)
+
+
+ 3: Safely unguessable: moderate protection from offline slow-hash scenario. (guesses < 10^10)
+
+
+ 4: Very unguessable: strong protection from offline slow-hash scenario. (guesses >= 10^10)