Ugly quirk to wor around Lektors tupide limitation with default languages

This commit is contained in:
Reto Bollinger 2025-03-19 17:33:28 +01:00
parent 134f3dedb2
commit a2dbd0715b
2 changed files with 17 additions and 3 deletions

View file

@ -1,11 +1,16 @@
[project] [project]
name = PCS name = PCS
[alternatives.de] [alternatives.xy]
name = German name = German
primary = yes primary = yes
locale = de_CH locale = de_CH
[alternatives.de]
name = German
url_prefix = /de/
locale = de_CH
[alternatives.fr] [alternatives.fr]
name = French name = French
url_prefix = /fr/ url_prefix = /fr/

View file

@ -29,17 +29,26 @@
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
{% set navigation = { {% set navigation = {
'xy': [
['/termine', 'Termine'],
['/vorstand', 'Vorstand'],
['/about', 'Über uns'],
['/kontakt', 'Kontakt aufnehmen'],
['.'|url(alt='fr'), 'français']
],
'de': [ 'de': [
['/termine', 'Termine'], ['/termine', 'Termine'],
['/vorstand', 'Vorstand'], ['/vorstand', 'Vorstand'],
['/about', 'Über uns'], ['/about', 'Über uns'],
['/kontakt', 'Kontakt aufnehmen'] ['/kontakt', 'Kontakt aufnehmen'],
['.'|url(alt='fr'), 'français']
], ],
'fr': [ 'fr': [
['/termine', 'Événements'], ['/termine', 'Événements'],
['/vorstand', 'Direction'], ['/vorstand', 'Direction'],
['/about', 'À propos'], ['/about', 'À propos'],
['/kontakt', 'Contactez-nous'] ['/kontakt', 'Contactez-nous'],
['.'|url(alt='de'), 'deutsch']
] ]
} %} } %}