From f8ce323663debb22890ad1ed29f385b8b832abc6 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 20:16:32 +0200 Subject: Extract public-site strings to i18n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The public views were never part of the admin extraction and were broken in both directions: German visitors got "Featured", "Calendar" and "Tags", English visitors got "Suchergebnisse für Suchbegriff:". Also picks up the unlock-confirm message in link_helper, a straggler from the revisions/menu_items batch, and drops two raw() calls in the application layout in favour of link_to blocks. --- app/helpers/link_helper.rb | 6 +++--- app/views/content/_featured_articles.html.erb | 2 +- app/views/content/_front_page_calendar.html.erb | 4 ++-- app/views/content/_tags.html.erb | 2 +- app/views/layouts/application.html.erb | 8 ++++---- app/views/layouts/assets.html.erb | 17 ----------------- app/views/layouts/pages.html.erb | 19 ------------------- app/views/search/index.html.erb | 2 +- app/views/tags/show.html.erb | 2 +- 9 files changed, 13 insertions(+), 49 deletions(-) delete mode 100644 app/views/layouts/assets.html.erb delete mode 100644 app/views/layouts/pages.html.erb (limited to 'app') diff --git a/app/helpers/link_helper.rb b/app/helpers/link_helper.rb index 9b0b4e10..2121133e 100644 --- a/app/helpers/link_helper.rb +++ b/app/helpers/link_helper.rb @@ -39,9 +39,9 @@ module LinkHelper end def unlock_link - message = "Are you sure you want to unlock?\n" \ - "Locked by #{@node.lock_owner.login}\n" \ - "Last modified #{@page.updated_at.to_fs(:db)}" + message = t("admin.common.unlock_confirm", + :login => @node.lock_owner.login, + :time => @page.updated_at.to_fs(:db)) button_to 'Unlock', unlock_node_path(@node), method: :put, form: { data: { confirm: message }, class: 'button_to state_changing' } diff --git a/app/views/content/_featured_articles.html.erb b/app/views/content/_featured_articles.html.erb index 6717c51f..2dfc4967 100644 --- a/app/views/content/_featured_articles.html.erb +++ b/app/views/content/_featured_articles.html.erb @@ -1,5 +1,5 @@