From 926737272dad7e43973eebacfd49c9eacbeccfbf Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 16 Jun 2024 15:37:54 -0400 Subject: [PATCH] fix edge case for i18n --- catalog/templates/movie.html | 2 +- catalog/templates/tvseason.html | 2 +- catalog/templates/tvshow.html | 2 +- journal/views/note.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/catalog/templates/movie.html b/catalog/templates/movie.html index f1dd1b54..dc2a3c84 100644 --- a/catalog/templates/movie.html +++ b/catalog/templates/movie.html @@ -13,7 +13,7 @@
{% include '_people.html' with people=item.playwright role='playwright' max=5 %}
{% include '_people.html' with people=item.actor role='actor' max=5 %}
{% include '_people.html' with people=item.genre role='genre' max=10 %}
-
{% include '_people.html' with people=item.area role='production area' max=10 %}
+
{% include '_people.html' with people=item.area role='region' max=10 %}
{% include '_people.html' with people=item.language role='language' max=5 %}
{% if item.duration %} diff --git a/catalog/templates/tvseason.html b/catalog/templates/tvseason.html index 6652ee00..2d474ed5 100644 --- a/catalog/templates/tvseason.html +++ b/catalog/templates/tvseason.html @@ -25,7 +25,7 @@
{% include '_people.html' with people=item.playwright role='playwright' max=5 %}
{% include '_people.html' with people=item.actor role='actor' max=5 %}
{% include '_people.html' with people=item.genre role='genre' max=10 %}
-
{% include '_people.html' with people=item.area role='production area' max=10 %}
+
{% include '_people.html' with people=item.area role='region' max=10 %}
{% include '_people.html' with people=item.language role='language' max=5 %}
{% if item.season_number %} diff --git a/catalog/templates/tvshow.html b/catalog/templates/tvshow.html index aa28a82c..bff10e37 100644 --- a/catalog/templates/tvshow.html +++ b/catalog/templates/tvshow.html @@ -13,7 +13,7 @@
{% include '_people.html' with people=item.playwright role='playwright' max=5 %}
{% include '_people.html' with people=item.actor role='actor' max=5 %}
{% include '_people.html' with people=item.genre role='genre' max=10 %}
-
{% include '_people.html' with people=item.area role='production area' max=10 %}
+
{% include '_people.html' with people=item.area role='region' max=10 %}
{% include '_people.html' with people=item.language role='language' max=5 %}
{% with item.all_seasons as seasons %} {% if seasons %} diff --git a/journal/views/note.py b/journal/views/note.py index d6a1c72f..3dcbf376 100644 --- a/journal/views/note.py +++ b/journal/views/note.py @@ -3,7 +3,7 @@ from django.contrib.auth.decorators import login_required from django.core.exceptions import BadRequest, ObjectDoesNotExist, PermissionDenied from django.http import Http404, HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404, redirect, render -from django.utils.translation import gettext as _ +from django.utils.translation import gettext_lazy as _ from django.views.decorators.http import require_http_methods from catalog.models import Item