Skip to content

Extract text from the 404 Page into Translation File #825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions locales/en-US/404.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Translation file for the rust-lang.org 404 page.

## 404 (templates/404.hbs)

error404-page-title = 404
error404-subtitle = Whoops, this page doesn’t exist :-(
error404-img-alt = 404 not found image
6 changes: 3 additions & 3 deletions templates/404.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<div class="flex-none flex-l mt5 mb5 tc tl-l">
<div class="w-70-l w-100">
<h1>404</h1>
<h2 class="subtitle">Whoops, this page doesn’t exist :-(</h2>
<h1>{{text error404-page-title}}</h1>
<h2 class="subtitle">{{text error404-subtitle}}</h2>
</div>
<div class="w-30-l w-100 mt5 mt0-l">
<img id="ferris-error" src="/static/images/ferris-error.png" alt="404 not found image">
<img id="ferris-error" src="/static/images/ferris-error.png" alt="{{text error404-img-alt}}">
</div>
</div>
</div>
Expand Down