diff --git a/templates/layout.html b/templates/layout.html index 65d9a20..971b3af 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -6,7 +6,7 @@ - + @@ -26,12 +26,29 @@ - {% if bag('translate', this.alt, 'api_space') %}{{ bag('translate', this.alt, 'api_space') }}{% else %}Vereinsheim{% endif %} {% if bag('translate', this.alt, 'api_open') %}{{ bag('translate', this.alt, 'api_open') }}{% else %}offen{% endif %} - {% if bag('translate', this.alt, 'api_open_text') %}{{ bag('translate', this.alt, 'api_open_text') }}{% else %}Vereinsheim ist gerade offen. Komm gerne vorbei solange wir da sind!{% endif %} + {% + if bag('translate', this.alt, 'api_space') %}{{ bag('translate', this.alt, 'api_space') }}{% + else %}{{ bag('translate', 'de', 'api_space') }}{% endif %} {% + if bag('translate', this.alt, 'api_open') %}{{ bag('translate', this.alt, 'api_open') }}{% + else %}{{ bag('translate', 'de', 'api_open') }}{% endif %} + {% if bag('translate', this.alt, 'api_open_text') + %}{{ bag('translate', this.alt, 'api_open_text') }}{% + else %}{{ bag('translate', 'de', 'api_open_text') }}{% endif %} - {% if bag('translate', this.alt, 'api_space') %}{{ bag('translate', this.alt, 'api_space') }}{% else %}Vereinsheim{% endif %} {% if bag('translate', this.alt, 'api_closed') %}{{ bag('translate', this.alt, 'api_closed') }}{% else %}geschlossen{% endif %} - {% if bag('translate', this.alt, 'api_opening_time') %}{{ bag('translate', this.alt, 'api_opening_time') }}{% else %}Vereinsheim ist typischerweise Donnerstags 19:30 offen{% endif %} + {% + if bag('translate', this.alt, 'api_space') %}{{ bag('translate', this.alt, 'api_space') }}{% + else %}{{ bag('translate', 'de', 'api_space') }}{% + endif %} {% if bag('translate', this.alt, 'api_closed') %}{{ bag('translate', this.alt, 'api_closed') }}{% + else %}{{ bag('translate', 'de', 'api_closed') }}{% endif %} + {% if bag('translate', this.alt, 'api_opening_time') + %}{{ bag('translate', this.alt, 'api_opening_time') }}{% + else %}{{ bag('translate', 'de', 'api_opening_time') }}{% endif %} @@ -39,7 +56,7 @@ {% if bag('navigation', this.alt, 'home') %}{{ bag('navigation', this.alt, 'home') }}{% - else %}Home{% endif %}{% + else %}{{ bag('navigation', 'de', 'home') }}{% endif %}{% for href, title, print in [ ['/blog', 'Blog', 1], ['/projekte', 'Projekte', 1], @@ -56,24 +73,56 @@ if this._path == child._path %} class="active"{% endif %}>{{ child.title }}{% endif %}{% endfor %} - {% if bag('navigation', this.alt, 'show_projekt') %}{{ bag('navigation', this.alt, 'show_projekt') }}{% else %}alle Projekte{% endif %} - {% if bag('navigation', this.alt, title) %}{{ bag('navigation', this.alt, title) }}{% else %}{{ title }}{% endif %} {% if bag('navigation', this.alt, 'xml') %}{{ bag('navigation', this.alt, 'xml') }}{% else %}als XML Feed{% endif %} + {% + if bag('navigation', this.alt, 'show_projekt') %}{{ bag('navigation', this.alt, 'show_projekt') }}{% + else %}{{ bag('navigation', 'de', 'show_projekt') }}{% endif %} + {% + if bag('navigation', this.alt, title) %}{{ bag('navigation', this.alt, title) }}{% + else %}{{ title }}{% endif %} {% + if bag('navigation', this.alt, 'xml') %}{{ bag('navigation', this.alt, 'xml') }}{% + else %}{{ bag('navigation', 'de', 'xml') }}{% endif %} {% elif title == 'Verein' %} - {% if bag('navigation', this.alt, 'Vereinsheim') %}{{ bag('navigation', this.alt, 'Vereinsheim') }}{% else %}Vereinsheim{% endif %} - {% if bag('navigation', this.alt, 'Elektrowerkstatt') %}{{ bag('navigation', this.alt, 'Elektrowerkstatt') }}{% else %}Elektrowerkstatt{% endif %} - {% if bag('navigation', this.alt, 'Grobwerkstatt') %}{{ bag('navigation', this.alt, 'Grobwerkstatt') }}{% else %}Grobwerkstatt{% endif %} - {% if bag('navigation', this.alt, 'Lounge') %}{{ bag('navigation', this.alt, 'Lounge') }}{% else %}Lounge{% endif %} - {% if bag('navigation', this.alt, 'Presse') %}{{ bag('navigation', this.alt, 'Presse') }}{% else %}Presse{% endif %} - {% if bag('navigation', this.alt, 'Wiki') %}{{ bag('navigation', this.alt, 'Wiki') }}{% else %}Wiki{% endif %} - {% if bag('navigation', this.alt, 'satzung') %}{{ bag('navigation', this.alt, 'satzung') }}{% else %}Satzung und Dokumente{% endif %} - {% if bag('navigation', this.alt, 'mitglied') %}{{ bag('navigation', this.alt, 'mitglied') }}{% else %}Mitglied werden{% endif %} - {% if bag('navigation', this.alt, 'spenden') %}{{ bag('navigation', this.alt, 'spenden') }}{% else %}Spenden{% endif %} - {% if bag('navigation', this.alt, 'fragen') %}{{ bag('navigation', this.alt, 'fragen') }}{% else %}Häufige Fragen{% endif %}{% + {% + if bag('navigation', this.alt, 'Vereinsheim') %}{{ bag('navigation', this.alt, 'Vereinsheim') }}{% + else %}{{ bag('navigation', 'de', 'Vereinsheim') }}{% endif %} + {% + if bag('navigation', this.alt, 'Elektrowerkstatt') %}{{ bag('navigation', this.alt, 'Elektrowerkstatt') }}{% + else %}{{ bag('navigation', 'de', 'Elektrowerkstatt') }}{% endif %} + {% + if bag('navigation', this.alt, 'Grobwerkstatt') %}{{ bag('navigation', this.alt, 'Grobwerkstatt') }} + {% else %}{{ bag('navigation', 'de', 'Grobwerkstatt') }}{% endif %} + {% + if bag('navigation', this.alt, 'Lounge') %}{{ bag('navigation', this.alt, 'Lounge') }}{% + else %}{{ bag('navigation', 'de', 'Lounge') }}{% endif %} + {% + if bag('navigation', this.alt, 'Presse') %}{{ bag('navigation', this.alt, 'Presse') }}{% + else %}{{ bag('navigation', 'de', 'Presse') }}{% endif %} + {% + if bag('navigation', this.alt, 'Wiki') %}{{ bag('navigation', this.alt, 'Wiki') }}{% + else %}{{ bag('navigation', 'de', 'Wiki') }}{% endif %} + {% + if bag('navigation', this.alt, 'satzung') %}{{ bag('navigation', this.alt, 'satzung') }}{% + else %}{{ bag('navigation', 'de', 'satzung') }}{% endif %} + {% + if bag('navigation', this.alt, 'mitglied') %}{{ bag('navigation', this.alt, 'mitglied') }}{% + else %}{{ bag('navigation', 'de', 'mitglied') }}{% endif %} + {% + if bag('navigation', this.alt, 'spenden') %}{{ bag('navigation', this.alt, 'spenden') }}{% + else %}{{ bag('navigation', 'de', 'spenden') }}{% endif %} + {% + if bag('navigation', this.alt, 'fragen') %}{{ bag('navigation', this.alt, 'fragen') }}{% + else %}{{ bag('navigation', 'de', 'fragen') }}{% endif %}{% elif title == 'Kontakt' %} - {% if bag('navigation', this.alt, 'Kontakt') %}{{ bag('navigation', this.alt, 'Kontakt') }}{% else %}Kontakt{% endif %} - {% if bag('navigation', this.alt, 'Impressum') %}{{ bag('navigation', this.alt, 'Impressum') }}{% else %}Impressum{% endif %} - {% if bag('navigation', this.alt, 'Datenschutz') %}{{ bag('navigation', this.alt, 'Datenschutz') }}{% else %}Datenschutz{% endif %} + {% + if bag('navigation', this.alt, 'Kontakt') %}{{ bag('navigation', this.alt, 'Kontakt') }}{% + else %}{{ bag('navigation', 'de', 'Kontakt') }}{% endif %} + {% + if bag('navigation', this.alt, 'Impressum') %}{{ bag('navigation', this.alt, 'Impressum') }}{% + else %}Impressum{% endif %} + {% + if bag('navigation', this.alt, 'Datenschutz') %}{{ bag('navigation', this.alt, 'Datenschutz') }}{% + else %}Datenschutz{% endif %} {% elif title == 'Blog' %} {% set root = site.get('/blog/', alt=this.alt) %}{% @@ -88,8 +137,16 @@ endfor %} {% if bag('navigation', this.alt, 'sprache') %}{{ bag('navigation', this.alt, 'sprache') }}{% else %}Sprache{% endif %} - {% if bag('navigation', this.alt, 'German') %}{{ bag('navigation', this.alt, 'German') }}{% else %}German{% endif %} - {% if bag('navigation', this.alt, 'Englisch') %}{{ bag('navigation', this.alt, 'Englisch') }}{% else %}english{% endif %} ({% if bag('navigation', this.alt, 'falls') %}{{ bag('navigation', this.alt, 'falls') }}{% else %}if available{% endif %}) + {% + if bag('navigation', this.alt, 'German') %}{{ bag('navigation', this.alt, 'German') }}{% + else %}{{ bag('navigation', 'de', 'German') }}{% endif %} + {% + if bag('navigation', this.alt, 'Englisch') %}{{ bag('navigation', this.alt, 'Englisch') }}{% + else %}{{ bag('navigation', 'de', 'Englisch') }}{% + endif %} ({% + if bag('navigation', this.alt, 'falls') %}{{ bag('navigation', this.alt, 'falls') }}{% + else %}{{ bag('navigation', 'de', 'falls') }}{{% + endif %})