From fe104aa2c52f61cd8555fbc98c20501f50f4aae8 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 17:45:34 +0200 Subject: Extract admin strings to i18n: revisions, page_translations, and menu items, --- app/views/page_translations/show.html.erb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/views/page_translations/show.html.erb') diff --git a/app/views/page_translations/show.html.erb b/app/views/page_translations/show.html.erb index c4091fc3..0fbcd0b6 100644 --- a/app/views/page_translations/show.html.erb +++ b/app/views/page_translations/show.html.erb @@ -1,29 +1,29 @@ -

Compare — <%= title_for_node(@node) %>

+

<%= t(".title") %> — <%= title_for_node(@node) %>

-

<%= link_to 'View revision history', node_revisions_path(@node, :locale => @locale) %>

+

<%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :locale => @locale) %>

<%= @locale.to_s.upcase %>

-
Title
+
<%= Page.human_attribute_name(:title) %>
<%= @translation&.title %>
-
Abstract
+
<%= Page.human_attribute_name(:abstract) %>
<%= sanitize(@translation&.abstract.to_s) %>
-
Body
+
<%= Page.human_attribute_name(:body) %>
<%= sanitize(@translation&.body.to_s) %>
-

<%= I18n.default_locale.to_s.upcase %> (default)

-
Title
+

<%= I18n.default_locale.to_s.upcase %> (<%= t(".default_marker") %>)

+
<%= Page.human_attribute_name(:title) %>
<%= @default_translation&.title %>
-
Abstract
+
<%= Page.human_attribute_name(:abstract) %>
<%= sanitize(@default_translation&.abstract.to_s) %>
-
Body
+
<%= Page.human_attribute_name(:body) %>
<%= sanitize(@default_translation&.body.to_s) %>
-- cgit v1.3