From f7c9ebdd527b083de1362145eed4505064b3fce2 Mon Sep 17 00:00:00 2001 From: joak Date: Fri, 8 Mar 2024 23:05:37 +0000 Subject: [PATCH] added databags --- databags/translation.ini | 7 +++++++ templates/event.html | 4 ++-- templates/page.html | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 databags/translation.ini diff --git a/databags/translation.ini b/databags/translation.ini new file mode 100644 index 0000000..0a53d63 --- /dev/null +++ b/databags/translation.ini @@ -0,0 +1,7 @@ +[en] +date = Date +location = Location + +[nl] +date = Datum +location = Locatie diff --git a/templates/event.html b/templates/event.html index 2acb9b0..793980f 100644 --- a/templates/event.html +++ b/templates/event.html @@ -9,8 +9,8 @@ {% set img = this.attachments.images.get(this.flyer) %} {% if img %}
{% else %}
{% endif %} {{ this.title }} -
Date: {{ this.start_date|datetimeformat('yyyy/MM/dd H:mm')}} - {{ this.end_date|datetimeformat('yyyy/MM/dd H:mm')}}
-
Location: {{ this.location}}
+
{{ bag('translation', this.alt, 'date') }}: {{ this.start_date|datetimeformat('yyyy/MM/dd H:mm')}} - {{ this.end_date|datetimeformat('yyyy/MM/dd H:mm')}}
+
{{ bag('translation', this.alt, 'location') }}: {{ this.location}}
{{ this.content }} {% endblock %} diff --git a/templates/page.html b/templates/page.html index d7c19a3..ecf3b2a 100644 --- a/templates/page.html +++ b/templates/page.html @@ -17,7 +17,7 @@ {% if img %}unimportant image{% endif %}
- {{ this.title }} + {{ this.body }}