diff --git a/shared/locale/en/LC_MESSAGES/django.mo b/shared/locale/en/LC_MESSAGES/django.mo index 087532a..e2a3e4e 100644 Binary files a/shared/locale/en/LC_MESSAGES/django.mo and b/shared/locale/en/LC_MESSAGES/django.mo differ diff --git a/shared/locale/en/LC_MESSAGES/django.po b/shared/locale/en/LC_MESSAGES/django.po index 5d4b062..768c34c 100644 --- a/shared/locale/en/LC_MESSAGES/django.po +++ b/shared/locale/en/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: 0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-06-18 19:34+0200\n" -"PO-Revision-Date: 2021-06-18 21:19+0200\n" +"POT-Creation-Date: 2021-06-18 22:33+0200\n" +"PO-Revision-Date: 2021-06-18 22:34+0200\n" "Last-Translator: Test Translator \n" "Language-Team: \n" "Language: en\n" @@ -744,6 +744,33 @@ msgstr "" "No voter with this username and password exists for this election. Check " "that the information entered is correct, the fields are case sensitive." +#: shared/templates/403.html:6 +msgid "Erreur 403" +msgstr "403 error" + +#: shared/templates/403.html:16 +msgid "Vous n'avez pas accès à cette ressource." +msgstr "You do not have access to this resource." + +#: shared/templates/404.html:6 +msgid "Erreur 404" +msgstr "404 error" + +#: shared/templates/404.html:16 +#, python-format +msgid "" +"La page à l'adresse « %(host)s%(request_path)s » n'a pas pu être trouvée." +msgstr "" +"The page at the address \"%(host)s%(request_path)s\" could not be found." + +#: shared/templates/500.html:6 +msgid "Erreur 500" +msgstr "500 error" + +#: shared/templates/500.html:16 +msgid "Erreur interne du serveur." +msgstr "Internal server error." + #: shared/templates/auth/create-user.html:7 msgid "Créer un compte avec mot de passe" msgstr "Create a password account" diff --git a/shared/templates/403.html b/shared/templates/403.html new file mode 100644 index 0000000..5cf9378 --- /dev/null +++ b/shared/templates/403.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% load i18n %} + + +{% block content %} +

{% trans "Erreur 403" %}

+
+ +
+
+
+ + + + + {% trans "Vous n'avez pas accès à cette ressource." %} + +
+
+
+{% endblock %} diff --git a/shared/templates/404.html b/shared/templates/404.html new file mode 100644 index 0000000..36ceff9 --- /dev/null +++ b/shared/templates/404.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% load i18n %} + + +{% block content %} +

{% trans "Erreur 404" %}

+
+ +
+
+
+ + + + + {% blocktrans with host=request.get_host %}La page à l'adresse « {{ host }}{{ request_path }} » n'a pas pu être trouvée.{% endblocktrans %} + +
+ {% if exception != "Resolver404" %}

{{ exception }}

{% endif %} +
+
+{% endblock %} diff --git a/shared/templates/500.html b/shared/templates/500.html new file mode 100644 index 0000000..876bdcd --- /dev/null +++ b/shared/templates/500.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} +{% load i18n %} + + +{% block content %} +

{% trans "Erreur 500" %}

+
+ +
+
+
+ + + + + {% trans "Erreur interne du serveur." %} + +
+
+
+{% endblock %}