Hi texnixe,
Thanks for the answer, yes the page is translated in all languages.
Settings:
config.php
return [
'debug' => false,
'languages' => true,
'languages.detect' => true,
'date.handler' => 'strftime',
'smartypants' => true,
'panel' => [
'css' => '/assets/css/panel.css',
'slug' => 'secret'
],
'bnomei.boost.cache' => [
'type' => 'sqlite'
],
'bnomei.janitor.jobs' => require_once 'jobs.php',
'routes' => require_once 'routes.php',
'thumbs' => require_once 'thumbs.php',
'cache' => [
'pages' => [
'active' => true,
'ignore' => function ($page) {
return in_array($page->id(), ['bank', 'archives', 'agenda', 'error']);
}
]
],
'hooks' => require_once 'hooks.php',
'bnomei.sqlite-cachedriver.pragmas-construct' => [
// your pragmas or none
'PRAGMA read_uncommitted = true;',
'PRAGMA busy_timeout = 10000;',
'PRAGMA main.cache_size = 20000;',
'PRAGMA case_sensitive_like = false',
'PRAGMA main.auto_vacuum = INCREMENTAL;',
'PRAGMA main.page_size = 8096;',
'PRAGMA temp_store = MEMORY;',
],
// Sitemap
'omz13.xmlsitemap' => [
'cacheTTL' => 60,
'includeUnlistedWhenTemplateIs' => ['exhibitions'],
'excludePageWhenTemplateIs' => ['events','year-press'],
'excludeChildrenWhenTemplateIs' => [ 'events','shop'],
'disableImages' => false,
],
// Retour
'distantnative.retour' => [
'ignore' => ['sites', 'en/nodes', 'de/nodes'],
]
];
System:
routes.php:
return [
[
'pattern' => '/',
'action' => function () {
$session = kirby()->session();
if ($session->get('languages.detect', false) === false && option('languages.detect') === true) {
$session->set('languages.detect', true);
return kirby()
->response()
->redirect(kirby()->detectedLanguage()->url());
}
return page();
}
]
I tried to completely remove the routes.php to see if this was causing issue, but didn’t change. That bit of code came from the issue where languages autodetect didn’t work when the default language url is set to ‘/’. To avoid to have the default language shown in the url.
Languages pages:
return [
'code' => 'fr',
'default' => true,
'direction' => 'ltr',
'locale' => 'fr_FR.utf-8',
'name' => 'Français',
'url' => '/',
'translations' => […]
]
return [
'code' => 'en',
'default' => false,
'direction' => 'ltr',
'locale' => 'en_US.utf-8',
'name' => 'English',
'url' => 'en',
'translations' => […]
]
return [
'code' => 'de',
'default' => false,
'direction' => 'ltr',
'locale' => 'de_DE.utf-8',
'name' => 'Deutsch',
'url' => 'de',
'translations' => […]
]
Sorry for the long post. Will try to disable other plugins in the meantime.