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 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/helpers') 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' } -- cgit v1.3