That is funny because I cannot access the English version of the site. Something seems to be blocked. Clicking the English button brings the site to the German version, always.
the consent popup is in German because I could only show in one language, so I chose German.
@werdi, Just set the preferred language in my browser to be German and I can reproduce your findings. The site opens in German, and when selecting the English language, the site remains in German. Selecting Espanol works fine.
Suggestions:
Check the language settings in system.yaml
Would you mind sharing them?
Inspect the relevant git commits with respect to file system.yaml
And check if there are any relevant configurations settings for the plugin.
(You didn’t mention which language plugin you are using).
Inspecting the code of your site I expect grav-plugin-langswitcher, which doesn’t seem to have any relevant settings.
These are the language settings in /user/config/system.yaml - there’s another system.yaml in the config folder, but I’m guessing you asked for this one.
languages:
supported:
- en
- de
- es
default_lang: null
include_default_lang: false
pages_fallback_only: false
translations: true
translations_fallback: true
session_store_active: false
http_accept_language: true
override_locale: false
I’m using the langswitcher plugin, don’t understand the question.
I’m afraid I don’t know how to do that.
Also, I did change something last week which was to (try to) change the Default Language Prefix. That didn’t seem to work though. Could that be interfering?
… otherwise you couldn’t see them on your end, right?
If the requested language does not have a matching page with the correct language extension, Grav will fallback to the first language in the list of languages.supported (which is German in your case), and if that doesn’t exist, it will look for the second in the list, etc.
How do the language extension of the pages look like?
I updated my Grav package to see if it would change anything…
I know I changed something in some file. (And I know that is not useful at all.) I kept trying to tell Grav to not jump into the English version when I start the site. This kept happening, although I had somewhere already set it up so that German is the first language of the site. Is there anywhere else one can influence the language settings?
This is a reasonable combination, so I tend to think this might be a bug in Grav.
With above combination, the language mentioned first in the supported list will always be ignored and replaced with the language set by the browser.
In your case, where de is mentioned first, German will be ignored when the browser is set to either English or Spanish and replaced with the browser’s preference.
Solution (sort of):
Changing the value of either of the two settings will fix the problem, but then you will loose your preferred setting.
The bug:
I think this is an issue in Grav and not the langswitcher plugin, because without the plugin the same happens. In my default site, with your config and with browser set to Spanish the following happens: