diff --git a/app/views/exceptions/not_found.html.erb b/app/views/exceptions/not_found.html.erb index 67edd1dc3..7a346cc08 100644 --- a/app/views/exceptions/not_found.html.erb +++ b/app/views/exceptions/not_found.html.erb @@ -1,31 +1,31 @@ <% local_domain = "#{request.protocol}#{request.host_with_port}" %> -

The page you requested doesn't exist on this discussion forum. Perhaps we can help find it, or another topic like it:

+

<%= t 'page_not_found.title' %>

-

Popular topics

+

<%= t 'page_not_found.popular_topics' %>

<% @popular.each do |t| %> <%= link_to t.title, t.relative_url %>
<% end %>
- See More… + <%= t 'page_not_found.see_more' %>…
-

Recent topics

+

<%= t 'page_not_found.recent_topics' %>

<% @recent.each do |t| %> <%= link_to t.title, t.relative_url %>
<% end %>
- See More… + <%= t 'page_not_found.see_more' %>…
-

Search for this topic

+

<%= t 'page_not_found.search_title' %>

- +

diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index c8514304a..954c43e83 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -704,3 +704,11 @@ en: discourse_hub: access_token_problem: "Tell an admin: Please update the site settings to include the correct discourse_org_access_key." + + page_not_found: + title: "The page you requested doesn't exist on this discussion forum. Perhaps we can help find it, or another topic like it:" + popular_topics: "Popular topics" + recent_topics: "Recent topics" + see_more: "See More" + search_title: "Search for this topic" + search_google: "Search Google"