None of these seem to work.
Adding this in my file though setlocale(LC_ALL, 'de_DE'); work just fine and ->toDate('%B') then prints the correct translated name of the month.
To Reproduce
Steps to reproduce the behavior:
Go to in the config file
Add the date handler 'date.handler' => 'strftime'
Add a custom locale 'locale' => 'de_DE.utf-8'
Try print a translated date somewhere in a template using ->toDate('%B')
Expected behavior
The name of the month should reflect the setting of the locale value
Kirby Version
3.0.0
Additional context
This is a "vanilla" installation with no languages set up in the languages folder
Describe the bug I was trying to make this
->toDate('%B')
work and print the correct german translation of the month's name.Tried probably every possible permutation of the
locale
setting in the config file.as well as the more explicit version using the single parameters
None of these seem to work. Adding this in my file though
setlocale(LC_ALL, 'de_DE');
work just fine and->toDate('%B')
then prints the correct translated name of the month.To Reproduce Steps to reproduce the behavior:
'date.handler' => 'strftime'
'locale' => 'de_DE.utf-8'
->toDate('%B')
Expected behavior The name of the month should reflect the setting of the locale value
Kirby Version 3.0.0
Additional context This is a "vanilla" installation with no languages set up in the
languages
folder