From d386456a8897d30354c1f104cd2624a3d10c7862 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sun, 20 Apr 2025 00:06:34 +0200 Subject: [PATCH] change file extension to `html.j2` for templates --- app/Makefile | 2 +- app/src/.babel.cfg | 3 ++- app/translations/de/LC_MESSAGES/messages.po | 4 ++-- ha_addons/Makefile | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/Makefile b/app/Makefile index f380714..6db4b6e 100644 --- a/app/Makefile +++ b/app/Makefile @@ -10,7 +10,7 @@ APP=. SRC=$(APP)/src # Folders for Babel translation BABEL_INPUT_JINJA=$(SRC)/web/templates -BABEL_INPUT= $(foreach dir,$(BABEL_INPUT_JINJA),$(wildcard $(dir)/*.html)) \ +BABEL_INPUT= $(foreach dir,$(BABEL_INPUT_JINJA),$(wildcard $(dir)/*.html.j2)) \ BABEL_TRANSLATIONS=$(APP)/translations diff --git a/app/src/.babel.cfg b/app/src/.babel.cfg index cfaa201..a5c0c48 100644 --- a/app/src/.babel.cfg +++ b/app/src/.babel.cfg @@ -1,2 +1,3 @@ [python: **.py] -[jinja2: web/templates/**.html] \ No newline at end of file +[jinja2: web/templates/**.html] +[jinja2: web/templates/**.html.j2] \ No newline at end of file diff --git a/app/translations/de/LC_MESSAGES/messages.po b/app/translations/de/LC_MESSAGES/messages.po index d76f60d..d0f6e25 100644 --- a/app/translations/de/LC_MESSAGES/messages.po +++ b/app/translations/de/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: tsun-gen3-proxy 0.14.0\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2025-04-18 20:46+0200\n" +"POT-Creation-Date: 2025-04-20 00:01+0200\n" "PO-Revision-Date: 2025-04-18 16:24+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -19,7 +19,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.17.0\n" -#: src/web/templates/index.html:5 +#: src/web/templates/index.html.j2:5 msgid "My Dashboard" msgstr "Mein Dashboard" diff --git a/ha_addons/Makefile b/ha_addons/Makefile index 505db46..c661ed0 100644 --- a/ha_addons/Makefile +++ b/ha_addons/Makefile @@ -88,7 +88,7 @@ SRC_FILES := $(wildcard $(SRC_PROXY)/*.py)\ $(wildcard $(SRC_PROXY)/gen3/*.py)\ $(wildcard $(SRC_PROXY)/gen3plus/*.py)\ $(wildcard $(SRC_PROXY)/web/*.py)\ - $(wildcard $(SRC_PROXY)/web/templates/*.html)\ + $(wildcard $(SRC_PROXY)/web/templates/*.html.j2)\ $(wildcard $(SRC_PROXY)/web/static/css/*.css)\ $(wildcard $(SRC_PROXY)/web/static/font/*)\ $(wildcard $(SRC_PROXY)/web/static/font-awesome/*/*)\