diff --git a/netbox/templates/403.html b/netbox/templates/403.html index 259206f21..de8791fa1 100644 --- a/netbox/templates/403.html +++ b/netbox/templates/403.html @@ -1,9 +1,10 @@ {% extends 'base/40x.html' %} +{% load i18n %} -{% block title %}Access Denied{% endblock %} +{% block title %}{% trans "Access Denied" %}{% endblock %} {% block icon %}{% endblock %} {% block message %} - You do not have permission to access this page. + {% trans "You do not have permission to access this page" %}. {% endblock %} diff --git a/netbox/templates/404.html b/netbox/templates/404.html index 766d81732..4956c2cdc 100644 --- a/netbox/templates/404.html +++ b/netbox/templates/404.html @@ -1,9 +1,10 @@ {% extends 'base/40x.html' %} +{% load i18n %} -{% block title %}Page Not Found{% endblock %} +{% block title %}{% trans "Page Not Found" %}{% endblock %} {% block icon %}{% endblock %} {% block message %} - The requested page does not exist. + {% trans "The requested page does not exist" %}. {% endblock %} diff --git a/netbox/templates/500.html b/netbox/templates/500.html index 6cface941..f3354688e 100644 --- a/netbox/templates/500.html +++ b/netbox/templates/500.html @@ -1,9 +1,10 @@ +{% load i18n %} {% load static %} - Server Error + {% trans "Server Error" %} @@ -14,28 +15,28 @@
- Server Error + {% trans "Server Error" %}
{% block message %}

- There was a problem with your request. Please contact an administrator. + {% trans "There was a problem with your request. Please contact an administrator" %}.

{% endblock %}

- The complete exception is provided below: + {% trans "The complete exception is provided below" %}:

{{ exception }}
{{ error }} -Python version: {{ python_version }} -NetBox version: {{ netbox_version }}
+{% trans "Python version" %}: {{ python_version }} +{% trans "NetBox version" %}: {{ netbox_version }}

- If further assistance is required, please post to the NetBox discussion forum on GitHub. + {% trans "If further assistance is required, please post to the" %} {% trans "NetBox discussion forum" %} {% trans "on GitHub" %}.

diff --git a/netbox/templates/admin/index.html b/netbox/templates/admin/index.html index bc0f51a3f..b96a872b0 100644 --- a/netbox/templates/admin/index.html +++ b/netbox/templates/admin/index.html @@ -1,4 +1,5 @@ {% extends "admin/index.html" %} +{% load i18n %} {% block content_title %}{% endblock %} @@ -6,16 +7,16 @@ {{ block.super }}
- + diff --git a/netbox/templates/base/40x.html b/netbox/templates/base/40x.html index bcd8d1bc0..7942b9ffd 100644 --- a/netbox/templates/base/40x.html +++ b/netbox/templates/base/40x.html @@ -1,4 +1,5 @@ {% extends 'base/layout.html' %} +{% load i18n %} {% block title %}{% endblock %} @@ -13,7 +14,7 @@ {% block message %}{% endblock %} diff --git a/netbox/templates/base/base.html b/netbox/templates/base/base.html index 138a92b6d..0f6c9d9be 100644 --- a/netbox/templates/base/base.html +++ b/netbox/templates/base/base.html @@ -1,6 +1,7 @@ {# Base template for (almost) all NetBox pages #} {% load static %} {% load helpers %} +{% load i18n %} {# Page title #} - {% block title %}Home{% endblock %} | NetBox + {% block title %}{% trans "Home" %}{% endblock %} | NetBox
System{% trans "System" %}
- Background Tasks + {% trans "Background Tasks" %}
- Installed plugins + {% trans "Installed plugins" %}