From 464dd4266bdc433805010b5dca428f4cb75c2a81 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 31 Jul 2026 15:55:43 +0200 Subject: Group user accounts by role Replaces the two-way admin/user split with four groups ordered by capability: administration, Redaktion, editors, alumni. alumni takes precedence over capability in role_group, so a retired admin appears at the bottom rather than the top. Forms now offer the three roles as checkboxes rather than a single admin checkbox, with a trailing hidden blank so an empty set can be posted, and user_params permits roles only for admins. Three create buttons prefill the common combinations. --- config/locales/de.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'config/locales/de.yml') diff --git a/config/locales/de.yml b/config/locales/de.yml index cf93e05b..e15a08d2 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -145,6 +145,10 @@ de: restore_target_invalid: "Das Wiederherstellungsziel muss ein lebender Node sein" destroy_outside_trash: "Nodes können nur aus dem Papierkorb gelöscht werden" attach_in_trash: "An einen Node im Papierkorb können keine Assets angehängt werden" + user: + attributes: + roles: + unknown: "enthält unbekannte Rollen: %{list}" related_asset: attributes: headline: @@ -276,11 +280,28 @@ de: admin: "Admin?" user: confirm_destroy: "Benutzer %{login} wirklich löschen?" + no_roles: "—" index: - admins: "Admins" - create_admin: "Admin-Benutzer anlegen" - users: "Benutzer" - create_user: "Benutzer anlegen" + title: "Benutzerkonten" + create_editor: "Editor-Konto anlegen" + create_redaktion: "Redaktions-Konto anlegen" + create_admin: "Admin-Konto anlegen" + group_admin: "Administration" + group_redaktion: "Redaktion" + group_editor: "Editors" + group_alumni: "Ehemalige" + group_empty: "— keine —" + labels: + roles: "Rollen" + roles: + admin: "Administration" + redaktion: "Redaktion" + alumni: "Ehemalig" + role_hints: + admin: "Benutzerverwaltung und Navigation, jeweils nach erneuter Bestätigung." + redaktion: "Darf in den geschützten Bereichen veröffentlichen." + alumni: "Kein Login mehr möglich; Zuschreibungen bleiben erhalten." + no_roles: "keine besonderen Rollen" new: title: "Neuen Benutzer anlegen" -- cgit v1.3