diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 20:16:32 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 20:16:32 +0200 |
| commit | f8ce323663debb22890ad1ed29f385b8b832abc6 (patch) | |
| tree | e872c2d8a6af8de6ad84ef285240f0c130b26bcc /app/helpers | |
| parent | fe104aa2c52f61cd8555fbc98c20501f50f4aae8 (diff) | |
Extract public-site strings to i18n
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.
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/link_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
| 39 | end | 39 | end |
| 40 | 40 | ||
| 41 | def unlock_link | 41 | def unlock_link |
| 42 | message = "Are you sure you want to unlock?\n" \ | 42 | message = t("admin.common.unlock_confirm", |
| 43 | "Locked by #{@node.lock_owner.login}\n" \ | 43 | :login => @node.lock_owner.login, |
| 44 | "Last modified #{@page.updated_at.to_fs(:db)}" | 44 | :time => @page.updated_at.to_fs(:db)) |
| 45 | button_to 'Unlock', unlock_node_path(@node), | 45 | button_to 'Unlock', unlock_node_path(@node), |
| 46 | method: :put, | 46 | method: :put, |
| 47 | form: { data: { confirm: message }, class: 'button_to state_changing' } | 47 | form: { data: { confirm: message }, class: 'button_to state_changing' } |
