-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add translations wrapping to templates
- Loading branch information
“OMosimege”
committed
Jun 6, 2024
1 parent
45f815a
commit b88f5d6
Showing
9 changed files
with
70 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_content %} | ||
|
||
<div class="card-body"> | ||
<h5 class="card-title">Bad Request (400)</h5> | ||
<p class="card-text">The server cannot process the request due to client error.</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">Go to home</a> | ||
<h5 class="card-title">{% trans "Bad Request (400)" %}</h5> | ||
<p class="card-text">{% trans "The server cannot process the request due to client error." %}"</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Go to home" %}</a> | ||
</div> | ||
|
||
{% endblock error_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_content %} | ||
|
||
<div class="card-body"> | ||
<h5 class="card-title">Forbidden (403)</h5> | ||
<p class="card-text">You do not have permission to access on this server.</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">Go to home</a> | ||
<h5 class="card-title">{% trans "Forbidden (403)" %}</h5> | ||
<p class="card-text">{% trans "You do not have permission to access on this server." %}</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Go to home" %}</a> | ||
</div> | ||
|
||
{% endblock error_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_content %} | ||
|
||
<div class="card-body"> | ||
<h5 class="card-title">Not Found (404)</h5> | ||
<p class="card-text">The requested resource was not found on this server.</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">Go to home</a> | ||
<h5 class="card-title">{% trans "Not Found (404)" %}</h5> | ||
<p class="card-text">{% trans "The requested resource was not found on this server." %}</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Go to home" %}</a> | ||
</div> | ||
|
||
{% endblock error_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{% extends "base_error.html" %} | ||
{% load i18n %} | ||
|
||
{% block error_content %} | ||
|
||
<div class="card-body"> | ||
<h5 class="card-title">Internal Server Error (500)</h5> | ||
<p class="card-text">The server encountered an unexpected condition that prevented it from fulfilling the request.</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">Go to home</a> | ||
<h5 class="card-title">{% trans "Internal Server Error (500)" %}</h5> | ||
<p class="card-text">{% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %}</p> | ||
<a href="{% url 'home' %}" class="btn btn-primary">{% trans "Go to home" %}</a> | ||
</div> | ||
|
||
{% endblock error_content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters