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 }}