From dab53a1ef28ecc281d574b50d3433e806db375cd Mon Sep 17 00:00:00 2001
From: erdgeist
Date: Sun, 2 Aug 2026 14:31:50 +0200
Subject: Keep the compared translation independent of the interface language
---
app/views/revisions/index.html.erb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'app/views/revisions/index.html.erb')
diff --git a/app/views/revisions/index.html.erb b/app/views/revisions/index.html.erb
index 6bcf1820..d118f96a 100644
--- a/app/views/revisions/index.html.erb
+++ b/app/views/revisions/index.html.erb
@@ -9,10 +9,10 @@
<%= t("revisions.locale_label") %>
<% ([I18n.default_locale] + Page.non_default_locales).each_with_index do |locale, i| %>
<%= " · ".html_safe if i > 0 %>
- <% if locale == @locale %>
+ <% if locale == @translation_locale %>
<%= locale.to_s.upcase %>
<% else %>
- <%= link_to locale.to_s.upcase, node_revisions_path(@node, :locale => locale) %>
+ <%= link_to locale.to_s.upcase, node_revisions_path(@node, :translation_locale => locale) %>
<% end %>
<% end %>
@@ -34,7 +34,7 @@
<%= button_to t(".diff_revisions"), diff_node_revisions_path(@node),
method: :post,
- params: { locale: @locale },
+ params: { translation_locale: @translation_locale },
form: { id: 'diff_form', class: 'button_to computation' },
disabled: true %>
" data-selected="<%= t(".selected_word") %>">
@@ -50,10 +50,10 @@
| <%= radio_button_tag :start_revision, page.revision, index == 1 %> |
<%= radio_button_tag :end_revision, page.revision, index == 0 %> |
<%= page.revision %> |
- <%= page.translations.find_by(:locale => @locale)&.title || "—" %> |
+ <%= page.translations.find_by(:locale => @translation_locale)&.title || "—" %> |
<%= page.editor.try(:login) %> |
<%= page.updated_at %> |
- <%= link_to t(".show_link"), node_revision_path(@node, page, :locale => @locale) %> |
+ <%= link_to t(".show_link"), node_revision_path(@node, page, :translation_locale => @translation_locale) %> |
<%= button_to t(".restore_link"), restore_node_revision_path(@node, page),
method: :put,
--
cgit v1.3
|