coko
February 8, 2023, 11:09am
1
I’ve got the same issue as: Error Page is shown in wrong language
I’m on a multiple language site everything works as expected but only the error page shows the default language only. There is a translation in place, but is not displayed.
My languages set up:
return [
'code' => 'nl',
'default' => true,
'direction' => 'ltr',
'name' => 'Nederlands',
'url' => '/',
'locale' => [
'LC_ALL' => 'nl_NL.utf8',
'LC_COLLATE' => 'nl_NL.utf8',
'LC_MONETARY' => 'nl_NL.utf8',
'LC_NUMERIC' => 'nl_NL.utf8',
'LC_TIME' => 'nl_NL.utf8',
'LC_MESSAGES' => 'nl_NL.utf8',
'LC_CTYPE' => 'nl_NL.utf8'
],
];
return [
'code' => 'en',
'default' => false,
'direction' => 'ltr',
'name' => 'English',
'url' => 'en',
'locale' => [
'LC_ALL' => 'en_GB.utf8',
'LC_COLLATE' => 'en_GB.utf8',
'LC_MONETARY' => 'en_GB.utf8',
'LC_NUMERIC' => 'en_GB.utf8',
'LC_TIME' => 'en_GB.utf8',
'LC_MESSAGES' => 'en_GB.utf8',
'LC_CTYPE' => 'en_GB.utf8'
],
];
I’m using Kirby 3.9.1
texnixe
February 8, 2023, 12:02pm
2
Yes, issue still open, seems to happen with some languages as default language and the URL set to ‘/’:
opened 07:41PM - 07 Nov 22 UTC
type: bug 🐛
### Scenario to reproduce:
Have 2 languages:
- French (default), with `"url"… => "/"`
- English (secondary), with `"url" => "en"`
If you visit `/en/asdf`, the url is right, but the content is not translated (appears in default language).
If you visite `/asdf`, the url is right and the content is translated.
Fix:
If I set the french `url => "fr"`, it works as intended. Both "/" and "/en" are displaying the right locale.
If I set the english as default, with `url => "/"`, it works as intended.
This means I cannot have French as default language with `url => "/"`.
Same issue as this user: https://forum.getkirby.com/t/error-page-is-shown-in-wrong-language/18084/9
_Originally posted by @juliencharette in https://github.com/getkirby/kirby/issues/2609#issuecomment-1306071201_
coko
February 8, 2023, 2:27pm
3
Indeed, when I change default from '/' to 'nl' it works …
Not going to do that though, I’ll wait until this is resolved.
This seems also to happen if there is no URL set to “/”.
I have English as Default and German as secondary Language. Visiting something like “/missing-page” will always show the Errorpage in the Default language.
Do I see this correctly that this is not yet fixed?