diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 05:39:27 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 05:39:27 +0200 |
| commit | bb7ef80d084f474bb4c3be0ae0d033aff3de0272 (patch) | |
| tree | 4a608e033f2197ce3124c2cdbd50feb16c165d90 | |
| parent | 190daaa8a0bb79e750894b83e31b9d99f7d900a4 (diff) | |
Don't reference your own user as 'du' in action log. It breaks grammar.
| -rw-r--r-- | app/helpers/node_actions_helper.rb | 3 | ||||
| -rw-r--r-- | config/locales/de.yml | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/app/helpers/node_actions_helper.rb b/app/helpers/node_actions_helper.rb index ef42b75..55ca982 100644 --- a/app/helpers/node_actions_helper.rb +++ b/app/helpers/node_actions_helper.rb | |||
| @@ -19,9 +19,6 @@ module NodeActionsHelper | |||
| 19 | private | 19 | private |
| 20 | 20 | ||
| 21 | def actor_ref action | 21 | def actor_ref action |
| 22 | if action.user && respond_to?(:current_user) && action.user == current_user | ||
| 23 | return t("node_actions.actor_self") | ||
| 24 | end | ||
| 25 | action.user ? link_to(h(action.actor_name), admin_log_path(:user_id => action.user_id)) | 22 | action.user ? link_to(h(action.actor_name), admin_log_path(:user_id => action.user_id)) |
| 26 | : h(action.actor_name) | 23 | : h(action.actor_name) |
| 27 | end | 24 | end |
diff --git a/config/locales/de.yml b/config/locales/de.yml index 4e7b11d..795e4d0 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -89,7 +89,6 @@ de: | |||
| 89 | backfilled: "rekonstruiert" | 89 | backfilled: "rekonstruiert" |
| 90 | show_changes: "Änderungen an Übersetzungen" | 90 | show_changes: "Änderungen an Übersetzungen" |
| 91 | view_revision: "Diese Revision ansehen" | 91 | view_revision: "Diese Revision ansehen" |
| 92 | actor_self: "du" | ||
| 93 | unknown: "%{actor} hat %{action} auf %{subject} aus" | 92 | unknown: "%{actor} hat %{action} auf %{subject} aus" |
| 94 | publish: "%{actor} hat %{subject} veröffentlicht, (vorher: %{from})" | 93 | publish: "%{actor} hat %{subject} veröffentlicht, (vorher: %{from})" |
| 95 | publish_first: "%{actor} hat %{subject} zum ersten Mal veröffentlicht" | 94 | publish_first: "%{actor} hat %{subject} zum ersten Mal veröffentlicht" |
