Skip to content

Commit

Permalink
Made 404 translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
AS1100K committed Nov 21, 2024
1 parent ad7db89 commit 388adb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"full-url-to-index-pages": "Full URLs to Index pages, one per line.",
"edit": "Edit",
"admins": "Admins",
"404-not-found": "404 Not Found",
"requested-page-does-not-exist": "The requested page does not exist.",
"all-contests": "All contests",
"your-contests": "Your contests",
"recently-ended-contests": "Recently ended contests",
Expand Down
2 changes: 2 additions & 0 deletions i18n/qqq.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"home-table-row-validated": "Table Row text of 'From Proofread to Validated:' on scoring system table",
"home-table-row-validated-demoted": "Table Row text of 'If a Validated page is demoted:' on scoring system table",
"home-table-row-proofread-demoted": "Table Row text of 'If a Proofread page is demoted:' on scoring system table",
"404-not-found": "Heading Text displaying the page was not found",
"requested-page-does-not-exist": "Text stating that the requested page does not exist.",
"full-url-to-index-pages": "Text Label stating 'Full URLs to Index pages, one per line.'",
"admins": "Text Label for Admins",
"edit": "Text Label for Edit",
Expand Down
4 changes: 2 additions & 2 deletions templates/bundles/TwigBundle/Exception/error404.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block main %}
<div class="alert alert-warning">
<h2>404 Not Found</h2>
<p>The requested page does not exist.</p>
<h2>{{ msg('404-not-found') }}</h2>
<p>{{ msg('requested-page-does-not-exist') }}</p>
</div>
{% endblock %}

0 comments on commit 388adb3

Please sign in to comment.