Default language not used after login

I am currently testing Kirby 3.6.0-alpha4 and have two languages defined: DE (as default) and EN (as secondary).
My account has also DE set as language. Whenever I login EN will be used in the panel by default and I always have to switch back to the main language DE.
Is this a bug of Kirby 3.6.0-alpha4 or did I forget something?


btw: is there a plugin that makes it more obvious which language you are currently using? The current visualisation is often too subtle.

Not that’s I’m aware of.

But Kirby 3.6 adds a data-language attribute to the .k-panel element, so you can use that to style the languages differently via a custom Panel stylesheet, so no need for a plugin.

When I set my user language to German, log out and back in again, the GUI language is still German.

I think the language switcher sort of remembers where you left off. If the lang switcher is set to English when I log out, it will be English again when I log back in or German when I left off with German.

Yes, the panel interface “behaves correctly” but every time I login again the content language is set to English (while the interface and main language is set to German). I would expect that the content language would also use the same logic as the panel language.

In Kirby 3.5.7.x, I think it behaves correctly. As I wrote above, when I log out and back in while in the default language version, I again end up in the default language. But when I delete all cookies and stuff, I end up in the English content language as you describe, which is different from the behavior in 3.5.7.

1 Like
  1. How could I add language indicators only in front of the fields that should be translated, similar to this screenshot?
  2. Is there a way to visually indicate which fields are already translated and which not (out of the ones that should be translated)?

You can do this with a custom Panel stylesheet, depending on language and if data-translate=true, you style k-field-label:before accordingly.

For example:

[data-language="en"] .k-page-view .k-field[data-translate="true"] .k-field-label:before {
  content: 'EN';
  color: white;
  background: black;
  padding: 0 2px ;
  margin-right: 5px;

(Maybe limit to certain views, otherwise you get it

That’s more tricky, since you cannot add custom properties to fields that could then be used to style those fields based on those props and a page model method. Unless you overwrite each and every field and add a custom property. At least I don’t have an idea how this could otherwise be achieved.

1 Like

Thanks again, the first hint worked quite well: