Merge remote-tracking branch 'upstream/pull/3981'

This commit is contained in:
Tom Hughes 2023-03-22 10:52:02 +00:00
commit 425d568037

View file

@ -3,34 +3,30 @@
<!-- Maybe ease foreigners back to their native page -->
<% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
<%= tag.div :lang => @locale, :dir => t("html.dir", :locale => @locale) do %>
<h1><%= t ".native.title" %></h1>
<p>
<%= t ".native.html",
:native_link => link_to(t(".native.native_link"),
:controller => "site",
:action => "copyright",
:copyright_locale => nil),
:mapping_link => link_to(t(".native.mapping_link"),
:controller => "site",
:action => "index") %>
</p>
<% end %>
<h1><%= t ".native.title" %></h1>
<p>
<%= t ".native.html",
:native_link => link_to(t(".native.native_link"),
:controller => "site",
:action => "copyright",
:copyright_locale => nil),
:mapping_link => link_to(t(".native.mapping_link"),
:controller => "site",
:action => "index") %>
</p>
<hr />
<% end %>
<% else %>
<!-- Maybe note that this page has been translated -->
<% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %>
<%= tag.div :lang => "en", :dir => t("html.dir", :locale => "en") do %>
<h1><%= t ".foreign.title" %></h1>
<p>
<%= t ".foreign.html",
:english_original_link => link_to(t(".foreign.english_link"),
:controller => "site",
:action => "copyright",
:copyright_locale => "en") %>
</p>
<% end %>
<h1><%= t ".foreign.title" %></h1>
<p>
<%= t ".foreign.html",
:english_original_link => link_to(t(".foreign.english_link"),
:controller => "site",
:action => "copyright",
:copyright_locale => "en") %>
</p>
<hr />
<% end %>
<% end %>