mirror of
https://git.bolliret.ch/pcs/pcs-website
synced 2026-01-18 13:21:37 +01:00
Ugly quirk to wor around Lektors tupide limitation with default languages
This commit is contained in:
parent
134f3dedb2
commit
a2dbd0715b
2 changed files with 17 additions and 3 deletions
|
|
@ -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/
|
||||||
|
|
|
||||||
|
|
@ -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']
|
||||||
]
|
]
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue