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]
name = PCS
[alternatives.de]
[alternatives.xy]
name = German
primary = yes
locale = de_CH
[alternatives.de]
name = German
url_prefix = /de/
locale = de_CH
[alternatives.fr]
name = French
url_prefix = /fr/

View file

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