From 23517c81e4302f9234b1050228e41312c8695e1c Mon Sep 17 00:00:00 2001 From: Olivier Bado-Faustin Date: Thu, 4 Jan 2024 10:31:05 +0100 Subject: [PATCH] [DONE] Fix jsi18n (#1011) * * Replace every `` by `` * Add js-catalog in theme_edit.html * Add jsi18n in more scripts * Add JS catalog in caption maker * Remove every `javascript-catalog` as it is already in base.html * rename i18njs as jsi18n * Remove the "version" number in base html, as webpush also load it without version number and we do not want it to be downloaded twice. --- .../templates/enrichment/group_enrichment.html | 6 ------ .../templates/import_video/add_or_edit.html | 1 - pod/live/templates/live/directs.html | 4 ---- pod/live/templates/live/event-iframe.html | 4 ++-- pod/live/templates/live/event_edit.html | 2 +- .../templates/live/event_immediate_edit.html | 1 - pod/main/templates/base.html | 17 ++++++++++------- pod/meeting/templates/meeting/add_or_edit.html | 1 - .../templates/playlist/add_or_edit.html | 3 +-- pod/podfile/templates/podfile/home.html | 2 -- pod/video/templates/channel/channel_edit.html | 17 ++++++++--------- pod/video/templates/channel/theme_edit.html | 2 +- pod/video/templates/videos/add_video.html | 12 +++--------- pod/video/templates/videos/video-iframe.html | 2 +- pod/video/templates/videos/video_edit.html | 5 ----- pod/video_search/templates/search/search.html | 2 -- 16 files changed, 27 insertions(+), 54 deletions(-) diff --git a/pod/enrichment/templates/enrichment/group_enrichment.html b/pod/enrichment/templates/enrichment/group_enrichment.html index 6fcef1f905..cd18a75fab 100644 --- a/pod/enrichment/templates/enrichment/group_enrichment.html +++ b/pod/enrichment/templates/enrichment/group_enrichment.html @@ -2,10 +2,6 @@ {% load i18n %} {% load static %} -{% block page_extra_head %} - -{% endblock page_extra_head %} - {% block breadcrumbs %}{{ block.super }} @@ -13,7 +9,6 @@ {% block page_title %}{% trans "Editing group for the enrichment of the video" %} "{{video.title}}"{% endblock %} - {% block page_content %} {% spaceless %}

{% trans "Editing group for the enrichment of the video" %} "{{video.title}}" @@ -79,7 +74,6 @@

{% endblock page_aside %} {% block more_script %} - diff --git a/pod/import_video/templates/import_video/add_or_edit.html b/pod/import_video/templates/import_video/add_or_edit.html index 4217205a81..ca6f16af12 100644 --- a/pod/import_video/templates/import_video/add_or_edit.html +++ b/pod/import_video/templates/import_video/add_or_edit.html @@ -227,7 +227,6 @@

{% trans "Terms of Service {% endblock page_aside %} {% block more_script %} - {{form.media}} diff --git a/pod/live/templates/live/directs.html b/pod/live/templates/live/directs.html index fb30bdb0a6..0e2484e871 100644 --- a/pod/live/templates/live/directs.html +++ b/pod/live/templates/live/directs.html @@ -2,10 +2,6 @@ {% load i18n %} {% load static %} -{% block page_extra_head %} -{% endblock %} - - {% block breadcrumbs %} {{ block.super }} diff --git a/pod/live/templates/live/event-iframe.html b/pod/live/templates/live/event-iframe.html index 722972f068..3c478f743a 100644 --- a/pod/live/templates/live/event-iframe.html +++ b/pod/live/templates/live/event-iframe.html @@ -2,7 +2,7 @@ {% load static %} - + @@ -27,7 +27,7 @@ - + diff --git a/pod/live/templates/live/event_edit.html b/pod/live/templates/live/event_edit.html index f8bb4f619c..d7b735cba0 100644 --- a/pod/live/templates/live/event_edit.html +++ b/pod/live/templates/live/event_edit.html @@ -10,6 +10,7 @@ } {% endblock %} + {% block breadcrumbs %}{{ block.super }} {% if form.instance.title and form.instance.slug != '' %} @@ -163,7 +164,6 @@

{% trans "Mandatory fields" %}

{% endblock page_aside %} {% block more_script %} - diff --git a/pod/live/templates/live/event_immediate_edit.html b/pod/live/templates/live/event_immediate_edit.html index d12f7c2971..98b43c8c01 100644 --- a/pod/live/templates/live/event_immediate_edit.html +++ b/pod/live/templates/live/event_immediate_edit.html @@ -108,7 +108,6 @@

{% trans "Mandatory fields" %}

{% endblock page_aside %} {% block more_script %} - diff --git a/pod/main/templates/base.html b/pod/main/templates/base.html index 00bd5b27bc..c582886dd0 100644 --- a/pod/main/templates/base.html +++ b/pod/main/templates/base.html @@ -40,11 +40,15 @@ {% endif %} - {% block more_style %} - {% endblock more_style %} - {{ TITLE_SITE }} - {% block page_title %}{{page_title|striptags|capfirst}}{% endblock %} - {% block page_extra_head %} - {% endblock %} + {% block more_style %}{% endblock more_style %} + + {{ TITLE_SITE }} - {% block page_title %}{{page_title|striptags|capfirst}}{% endblock %} + + + + + {% block page_extra_head %}{% endblock %} + {% if request.GET.is_iframe %} {% endif %} @@ -166,7 +170,7 @@

{{page_title|capfirst}}

{% trans 'We use third party cookies to personalize content, manage session and analyze site traffic.' %} {% if COOKIE_LEARN_MORE != "" %} - {% trans 'Learn more' %} + {% trans 'Learn more' %} {% endif %} @@ -177,7 +181,6 @@

{{page_title|capfirst}}

- diff --git a/pod/meeting/templates/meeting/add_or_edit.html b/pod/meeting/templates/meeting/add_or_edit.html index 0889a4eeaf..592fc65fcd 100644 --- a/pod/meeting/templates/meeting/add_or_edit.html +++ b/pod/meeting/templates/meeting/add_or_edit.html @@ -157,7 +157,6 @@ {% endblock page_aside %} {% block more_script %} -