Hi there,
Made all by instructions https://getkirby.com/docs/guide/languages/introduction
But can’t see languages on site settings page.
Should I buy license before using this option?
Hi there,
Made all by instructions https://getkirby.com/docs/guide/languages/introduction
But can’t see languages on site settings page.
Should I buy license before using this option?
a license is not technically required to setup multilanguage.
can you share your site/config/config.php file?
Sure:
<?php
return [
'debug' => true,
];
return [
'languages' => true,
];
return [
'language.detect' => true
];
Should look like this:
<?php
return [
'debug' => true,
'languages' => true,
'language.detect' => true
];
Thanks
hi texnixe,
I’m experiencing the same error. I have a multilanguage site, in the localhost it is ok but when I do a test in a production server (test server) the option to change language inside the panel does not appear. sometimes yes and sometimes not.
I attach the file config.php
<?php
return [
'panel' => [
'css' => 'assets/css/panel.css'
],
'debug' => false,
'languages' => true,
'languages.detect' => true,
'thumbs' => [
'driver' => 'gd',
'quality' => 90,
'interlace' => true,
'srcsets' => [
'default' => [300, 800, 1024],
'project' => [640, 768, 1024, 1366, 1600, 1920, 3200]
]
],
// 'home' => 'projects',
'routes' => [
[
'pattern' => 'sitemap.xml',
'action' => function() {
$pages = site()->pages()->index();
// fetch the pages to ignore from the config settings,
// if nothing is set, we ignore the error page
$ignore = kirby()->option('sitemap.ignore', 'error');
$content = snippet('sitemap', compact('pages', 'ignore'), true);
// return response with correct header type
return new Kirby\Cms\Response($content, 'application/xml');
}
],
[
'pattern' => 'sitemap',
'action' => function() {
return go('sitemap.xml', 301);
}
]
],
'sitemap.ignore' => ['error'],
];
Hm, maybe it is due to caching? https://getkirby.com/docs/guide/troubleshooting/panel#opcache
Kirby 3.1.3 adds OPcache invalidation for PHP files, maybe that takes care of this issue, could you try the RC?
where can i download kiry 3.1.3 RC? i only find the source code.
Here: https://github.com/getkirby/kirby/archive/3.1.3-rc.1.zip
This downloads the kirby
folder only, so you have to replace your current Kirby folder with the new one-
Hi there.
Don’t want to bother too much.
But I’m facing the same issue than @plantalabs.
On local environment everything’s square, though as soon as I’m on my test server the multilang option is not showing up.
I tried to implement this solution https://getkirby.com/docs/guide/troubleshooting/panel#opcache, but I’m not secure with htaccess files and after update my server throws me an error 500.
I’m pretty sure I’m doing it wrong (obviously ), but can’t figure any solutions right now.
Any help would much appreciated.
Many Thanks
What exactly is the issue? The Panel settings view doesn’t have the option to add new languages? Or the languages switcher on the individual pages does not show up/does not have any effect?
Hi @texnixe
Thanks for your Answer.
My issue is the second one. The switcher don’t show up.
I unsuccessfully tried to clear my server cache. But I couldn’t find any efficient infos on how to do so. I should probably consider of migrating to a better server provider.
And this is the first time this happens to me. On other multilingual websites I don’t have this problem.
Hi there, sorry I’m facing the same issue using kirby 4. I have defined the languages => true
in my config. Adding languages through the panel creates the en.php or de.php files, but they don’t show up in the list. Also, I don’t have the swtich on the pages.