Skip to content

Commit 052356a

Browse files
committed
OTW-6911: adjust locale strings
1 parent ec7dbd7 commit 052356a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

app/controllers/errors_controller.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ class ErrorsController < ApplicationController
66
end
77

88
def auth_error
9-
@page_subtitle = t(".subtitle")
9+
@page_subtitle = t(".browser_title")
1010
end
1111

1212
def timeout_error
13-
@page_subtitle = t(".subtitle")
14-
render "timeout_error", status: 504, formats: :html
13+
@page_subtitle = t(".browser_title")
14+
render "timeout_error", status: :gateway_timeout
1515
end
1616
end
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<h2 class="heading"><%= t(".title") %></h2>
1+
<h2 class="heading"><%= t(".page_heading") %></h2>
22
<h3 class="heading"><%= t(".subtitle") %></h3>
3-
<p><%= t(".html", contact_support_link: link_to(t(".contact_support_link"), new_feedback_report_path)) %></p>
3+
<p><%= t(".html", contact_support_link: link_to(t(".contact_support"), new_feedback_report_path)) %></p>

config/locales/controllers/en.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ en:
9292
success: Comment successfully unhidden!
9393
errors:
9494
timeout_error:
95-
subtitle: "Timeout Error"
95+
browser_title: "Timeout Error"
9696
auth_error:
97-
subtitle: "Authentication Error"
97+
browser_title: "Auth Error"
9898
external_works:
9999
update:
100100
successfully_updated: External work was successfully updated.

config/locales/views/en.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,10 @@ en:
613613
unrevealed: A translation of a work in an unrevealed collection
614614
errors:
615615
timeout_error:
616-
title: Timeout
616+
page_heading: Timeout Error
617617
subtitle: The page was responding too slowly. Please try again after a few minutes.
618-
html: If you still get this error after a few tries, please %{contact_support_link}.
619-
contact_support_link: contact Support
618+
html: If you still get this error after a few tries, you can %{contact_support_link}.
619+
contact_support: contact Support
620620
feedbacks:
621621
new:
622622
abuse:

0 commit comments

Comments
 (0)