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/views/content | |
| 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/views/content')
| -rw-r--r-- | app/views/content/_featured_articles.html.erb | 2 | ||||
| -rw-r--r-- | app/views/content/_front_page_calendar.html.erb | 4 | ||||
| -rw-r--r-- | app/views/content/_tags.html.erb | 2 |
3 files changed, 4 insertions, 4 deletions
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 @@ | |||
| 1 | <div id="featured_articles"> | 1 | <div id="featured_articles"> |
| 2 | <h2>Featured</h2> | 2 | <h2><%= t(".title") %></h2> |
| 3 | 3 | ||
| 4 | <!-- %= link_to( | 4 | <!-- %= link_to( |
| 5 | image_tag( '34c3-tuwat.1e4e25c.png' ), | 5 | image_tag( '34c3-tuwat.1e4e25c.png' ), |
diff --git a/app/views/content/_front_page_calendar.html.erb b/app/views/content/_front_page_calendar.html.erb index e7f46ba5..dc4ba884 100644 --- a/app/views/content/_front_page_calendar.html.erb +++ b/app/views/content/_front_page_calendar.html.erb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | <div id="frontpage_calendar"> | 1 | <div id="frontpage_calendar"> |
| 2 | <h2>Calendar</h2> | 2 | <h2><%= t(".title") %></h2> |
| 3 | <ul class="teasertext"> | 3 | <ul class="teasertext"> |
| 4 | <% occurrences.each do |occurrence| %> | 4 | <% occurrences.each do |occurrence| %> |
| 5 | <li> | 5 | <li> |
| @@ -8,4 +8,4 @@ | |||
| 8 | </li> | 8 | </li> |
| 9 | <% end %> | 9 | <% end %> |
| 10 | </ul> | 10 | </ul> |
| 11 | </div> \ No newline at end of file | 11 | </div> |
diff --git a/app/views/content/_tags.html.erb b/app/views/content/_tags.html.erb index f0e7210c..cf339b6f 100644 --- a/app/views/content/_tags.html.erb +++ b/app/views/content/_tags.html.erb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | <% unless @page.nil? || @page.tags.empty? %> | 1 | <% unless @page.nil? || @page.tags.empty? %> |
| 2 | <div id="tags"> | 2 | <div id="tags"> |
| 3 | <h2>Tags</h2> | 3 | <h2><%= t(".title") %></h2> |
| 4 | <ul class="teasertext"> | 4 | <ul class="teasertext"> |
| 5 | <% @page.tags.each do |tag| %> | 5 | <% @page.tags.each do |tag| %> |
| 6 | <li><%= link_to tag.name, tag_path(tag.name) %></li> | 6 | <li><%= link_to tag.name, tag_path(tag.name) %></li> |
