From ca4cb0b25fe97039e0be08a814b1bce83e10746a Mon Sep 17 00:00:00 2001 From: Finn Stutzenstein Date: Thu, 22 Oct 2026 17:47:38 +0000 Subject: [PATCH] Fix spelling in the translations and their English source strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - "Go Back" in not_found.html did not match the "Go back" key and was never translated. "Domain must be given" was missing in de.json. - English: successful, deactivate, a user, log in, URL, Re-enter password. The keys in de.json are renamed accordingly. - German: "Wird" instead of "Word", commas before "da", "E-Mail" and "E-Mail-Adresse" instead of "Email", "angegeben werden" instead of "gegeben sein", "ungültig" instead of "valide", "selbst" instead of "selber", missing periods. Co-Authored-By: Claude Opus 5.5 --- max/auth/routes.py | 6 ++-- max/db/common.py | 2 +- max/private_static/i18n/de.json | 43 +++++++++++++------------ max/routes/user/toggle_enabled.py | 2 +- max/templates/not_found.html | 2 +- max/templates/user/change-password.html | 2 +- max/templates/user/create.html | 4 +-- 7 files changed, 31 insertions(+), 30 deletions(-) diff --git a/max/auth/routes.py b/max/auth/routes.py index 6011619..0bd101f 100644 --- a/max/auth/routes.py +++ b/max/auth/routes.py @@ -10,8 +10,8 @@ from .middlewares import no_authentication_required # Messages for the login page (text, category), selected by ?msg=. LOGIN_MESSAGES = { - "login_required": ("Please login to visit the requested url", "error"), - "logout": ("Logout was sucessfull!", "success"), + "login_required": ("Please log in to visit the requested URL", "error"), + "logout": ("Logout was successful!", "success"), } @@ -55,7 +55,7 @@ class Login(AllowAnyAccess, BaseTemplateGetView): self.context["message_category"] = "error" self.context["email"] = email else: - flash(t("Login was sucessfull!"), category="success") + flash(t("Login was successful!"), category="success") return self.redirect("/") diff --git a/max/db/common.py b/max/db/common.py index a7ba54c..a7ac5a8 100644 --- a/max/db/common.py +++ b/max/db/common.py @@ -34,7 +34,7 @@ def create_email(cur, email): "Used as an alias by {alias}.", alias=alias_user_email[0] ) else: - raise EmailAlreadyExists("Used as an user.") + raise EmailAlreadyExists("Used as a user.") else: cur.execute( diff --git a/max/private_static/i18n/de.json b/max/private_static/i18n/de.json index 3dbce9e..9229a64 100644 --- a/max/private_static/i18n/de.json +++ b/max/private_static/i18n/de.json @@ -5,12 +5,12 @@ "Go back": "Zurück", "Login": "Login", "Logout": "Ausloggen", - "Please login to visit the requested url": "Einloggen, um die angefragte Seite zu sehen", - "Email": "Email", + "Please log in to visit the requested URL": "Einloggen, um die angefragte Seite zu sehen", + "Email": "E-Mail", "Password": "Passwort", "Log in": "Einloggen", "Change password for {user}": "Passwort für {user} ändern", - "Reenter Password": "Passwort erneut eingeben", + "Re-enter password": "Passwort erneut eingeben", "Change password": "Passwort ändern", "Cancel": "Abbrechen", "New password": "Neues Passwort", @@ -27,7 +27,7 @@ "Aliases": "Aliase", "Actions": "Aktionen", "No aliases yet": "Keine Aliase vorhanden", - "Email connection properties": "Email Verbindungsdaten", + "Email connection properties": "E-Mail-Verbindungsdaten", "Edit note for {email}": "Notiz für {email} bearbeiten", "Save": "Speichern", "Create user": "Nutzer erstellen", @@ -39,36 +39,37 @@ "Alias {alias} for {user}": "Alias {alias} für {user}", "Edit note for alias {alias}": "Notiz für Alias {alias} bearbeiten", "Email or password is wrong, or the account is deactivated": "E-Mail oder Passwort falsch, oder der Account ist deaktiviert", - "Login was sucessfull!": "Erfolgreich angemeldet!", - "Logout was sucessfull!": "Erfolgreich abgemeldet!", - "The email is not valid": "Die Email ist nicht valide", - "Email must be given": "Die Email muss gegeben sein", + "Login was successful!": "Erfolgreich angemeldet!", + "Logout was successful!": "Erfolgreich abgemeldet!", + "The email is not valid": "Die E-Mail-Adresse ist ungültig", + "Email must be given": "Die E-Mail-Adresse muss angegeben werden", "Enabled is not set": "Aktiviert ist nicht gesetzt", "Note must be a string": "Die Notiz muss eine Zeichenkette sein", "Creation of alias {email} was successful!": "Erstellen des Alias {email} war erfolgreich!", "Alias {email} was deleted successfully": "Alias {email} wurde erfolgreich gelöscht", "Note changed successfully!": "Notiz wurde erfolgreich bearbeitet!", - "Both passwords must be given": "Beide Passwörter müssen gegeben sein", + "Both passwords must be given": "Beide Passwörter müssen angegeben werden", "Both passwords must be the same": "Beide Passwörter müssen übereinstimmen", "Current password": "Aktuelles Passwort", - "The current password must be given": "Das aktuelle Passwort muss gegeben sein", + "The current password must be given": "Das aktuelle Passwort muss angegeben werden", "The current password is wrong": "Das aktuelle Passwort ist falsch", "Password changed successfully!": "Passwort erfolgreich geändert!", "Admin is not set": "Admin ist nicht gesetzt", "Creation of {email} was successful!": "{email} wurde erfolgreich erstellt!", - "You cannot delete yourself": "Du kannst dich nicht selber löschen", - "You cannot delete {email} since {email} is the last admin.": "Du kannst {email} nicht löschen da {email} der letzte Admin ist.", - "You cannot deactive {email} since {email} is the last enabled admin.": "Du kannst {email} nicht deaktivieren da {email} der letzte aktivierte Admin ist.", - "You cannot remove admin from {email} since {email} is the last enabled admin.": "Du kannst {email} nicht den Adminstatus entziehen da {email} der letzte aktivierte Admin ist.", + "You cannot delete yourself": "Du kannst dich nicht selbst löschen", + "You cannot delete {email} since {email} is the last admin.": "Du kannst {email} nicht löschen, da {email} der letzte Admin ist.", + "You cannot deactivate {email} since {email} is the last enabled admin.": "Du kannst {email} nicht deaktivieren, da {email} der letzte aktivierte Admin ist.", + "You cannot remove admin from {email} since {email} is the last enabled admin.": "Du kannst {email} nicht den Adminstatus entziehen, da {email} der letzte aktivierte Admin ist.", "{email} was deleted successfully": "{email} wurde erfolgreich gelöscht", - "Email already exists.": "Email existiert bereits.", - "Email already exists: {msg}": "Email existiert bereits: {msg}", - "Used as an user.": "Wird für einen Nutzer verwendet", - "Used as an alias by {alias}.": "Word für den Alias {alias} verwendet", - "Invalid domain": "Invalide Domain", + "Email already exists.": "Die E-Mail-Adresse existiert bereits.", + "Email already exists: {msg}": "Die E-Mail-Adresse existiert bereits: {msg}", + "Used as a user.": "Wird für einen Nutzer verwendet.", + "Used as an alias by {alias}.": "Wird für den Alias {alias} verwendet.", + "Invalid domain": "Ungültige Domain", "Invalid data": "Ungültige Daten", - "The email is too long": "Die E-Mail ist zu lang", + "The email is too long": "Die E-Mail-Adresse ist zu lang", "Can use different alias domains": "Kann unterschiedliche Aliasdomains benutzen", "Can use different alias domains is not set": "Kann unterschiedliche Aliasdomains benutzen ist nicht gesetzt", - "This address is reserved and can only be created by an admin.": "Diese Adresse ist reserviert und kann nur von einem Admin angelegt werden." + "This address is reserved and can only be created by an admin.": "Diese Adresse ist reserviert und kann nur von einem Admin angelegt werden.", + "Domain must be given": "Die Domain muss angegeben werden" } \ No newline at end of file diff --git a/max/routes/user/toggle_enabled.py b/max/routes/user/toggle_enabled.py index e8eb537..173cb8e 100644 --- a/max/routes/user/toggle_enabled.py +++ b/max/routes/user/toggle_enabled.py @@ -14,7 +14,7 @@ class UserToggleEnabled(AllowAdmin, FetchUserMixin, BackToUsersMixin, BaseView): if is_last_enabled_admin(self.user_id): flash( t( - "You cannot deactive {email} since {email} is the last enabled admin.", + "You cannot deactivate {email} since {email} is the last enabled admin.", email=self.user.email, ), category="error", diff --git a/max/templates/not_found.html b/max/templates/not_found.html index 45ce31e..d17d705 100644 --- a/max/templates/not_found.html +++ b/max/templates/not_found.html @@ -8,7 +8,7 @@ diff --git a/max/templates/user/change-password.html b/max/templates/user/change-password.html index 1cdf013..1da5ccf 100644 --- a/max/templates/user/change-password.html +++ b/max/templates/user/change-password.html @@ -18,7 +18,7 @@
- +
diff --git a/max/templates/user/create.html b/max/templates/user/create.html index 7d4c01a..5b114f2 100644 --- a/max/templates/user/create.html +++ b/max/templates/user/create.html @@ -23,8 +23,8 @@
- - + +