From b56a351f9904d12bddbde4aee8378efff687e1eb Mon Sep 17 00:00:00 2001 From: Raoul Date: Mon, 23 Apr 2018 21:34:02 +0200 Subject: [PATCH] Translate location --- data/cosin.toml | 6 +++++- themes/cosin-theme/layouts/partials/site-sidebar.de.html | 2 +- themes/cosin-theme/layouts/partials/site-sidebar.en.html | 2 +- themes/cosin-theme/layouts/partials/site-sidebar.fr.html | 2 +- themes/cosin-theme/layouts/partials/site-sidebar.it.html | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/data/cosin.toml b/data/cosin.toml index 64ace75..d5ec320 100644 --- a/data/cosin.toml +++ b/data/cosin.toml @@ -1,5 +1,6 @@ title = "Chaos Singularity" + # Set to false if date for next year is not known yet: date_known = true @@ -15,7 +16,10 @@ date_day_name_end = "Sonntag" place_known = true location = "Villa Ritter" -city = "Biel" +city_de = "Biel" +city_fr = "Bienne" +city_it = "Bienna" +city_en = "Biel" registration_open = true diff --git a/themes/cosin-theme/layouts/partials/site-sidebar.de.html b/themes/cosin-theme/layouts/partials/site-sidebar.de.html index 3467a72..bf247e1 100644 --- a/themes/cosin-theme/layouts/partials/site-sidebar.de.html +++ b/themes/cosin-theme/layouts/partials/site-sidebar.de.html @@ -14,7 +14,7 @@ {{ end }} {{ if .place_known }} - Ort: {{ .location }} in {{ .city }}
+ Ort: {{ .location }} in {{ .city_de }}
{{ end }} {{ if .registration_open }} diff --git a/themes/cosin-theme/layouts/partials/site-sidebar.en.html b/themes/cosin-theme/layouts/partials/site-sidebar.en.html index d8471b2..ea65b44 100644 --- a/themes/cosin-theme/layouts/partials/site-sidebar.en.html +++ b/themes/cosin-theme/layouts/partials/site-sidebar.en.html @@ -14,7 +14,7 @@ {{ end }} {{ if .place_known }} - Location: {{ .location }} in {{ .city }}
+ Location: {{ .location }} in {{ .city_en }}
{{ end }} {{ if .registration_open }} diff --git a/themes/cosin-theme/layouts/partials/site-sidebar.fr.html b/themes/cosin-theme/layouts/partials/site-sidebar.fr.html index d2962b8..535d91b 100644 --- a/themes/cosin-theme/layouts/partials/site-sidebar.fr.html +++ b/themes/cosin-theme/layouts/partials/site-sidebar.fr.html @@ -14,7 +14,7 @@ {{ end }} {{ if .place_known }} - Lieu: {{ .location }} à {{ .city }}
+ Lieu: {{ .location }} à {{ .city_fr }}
{{ end }} {{ if .registration_open }} diff --git a/themes/cosin-theme/layouts/partials/site-sidebar.it.html b/themes/cosin-theme/layouts/partials/site-sidebar.it.html index d04cf0f..65b52d3 100644 --- a/themes/cosin-theme/layouts/partials/site-sidebar.it.html +++ b/themes/cosin-theme/layouts/partials/site-sidebar.it.html @@ -14,7 +14,7 @@ {{ end }} {{ if .place_known }} - Luogo: {{ .location }} a {{ .city }}
+ Luogo: {{ .location }} a {{ .city_it }}
{{ end }} {{ if .registration_open }}