From b35465d080cb8169bd9ccaed908bbfe6216e363e Mon Sep 17 00:00:00 2001 From: JusticeV452 <55002917+JusticeV452@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:20:02 -0500 Subject: [PATCH 01/19] prepared html files for translation --- backend/templates/base.html | 34 ++++++++++++++------------ backend/templates/blog/blog_404.html | 5 ++-- backend/templates/includes/navbar.html | 11 +++++---- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/backend/templates/base.html b/backend/templates/base.html index fb14c849..7d1bb6fa 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -1,27 +1,29 @@ +{% load i18n %} {% load webpack_loader %} {% load render_bundle from webpack_loader %} - - This was Paris in 1970 - - - - - - - - + + + + {% render_bundle "index" "css" %} diff --git a/backend/templates/blog/blog_404.html b/backend/templates/blog/blog_404.html index 999041cc..040e31c8 100644 --- a/backend/templates/blog/blog_404.html +++ b/backend/templates/blog/blog_404.html @@ -1,3 +1,4 @@ +{% load i18n %} {% include "base.html" %} {% block content %}
@@ -7,9 +8,9 @@ {{ post.content | safe }}
- Blog page not found. + {% trans "Blog page not found." %} - Return to Blog Home + {% trans "Return to Blog Home" %}
diff --git a/backend/templates/includes/navbar.html b/backend/templates/includes/navbar.html index b2ade27b..45585fb1 100644 --- a/backend/templates/includes/navbar.html +++ b/backend/templates/includes/navbar.html @@ -1,10 +1,11 @@ +{% load i18n %}