I am building a multi-language website and I am using a lot <?= I18n::template(XXX', null, []);?>.
This works throughout my templates but I can’t get it to work in a controller which I created for a mail-form followed by your guide https://getkirby.com/docs/cookbook/forms/basic-contact-form.
I have read a more or less good solution in this forum but I don’t need to adjust such things in a panel.
How can I access my language files in a controller?
It’s the controller which you present in your tutorial.
But as the text, I mean errors and messages, is hard coded in there I would like to put all of this in my language php’s.
BTW, as we are already in here.
How it comes that when I have this contact form way down on my page and I press “send” the page reloads and the site jumps to the top.
What do I have to do to stay where I am? Or is this a more complex issue?
Thank you for your help once again. I really enjoy working with Kirby.
For this project I first started off with Wordpress but it is overloaded nowadays and my special needs couldn’t be satisfied with it. But with Kirby it feels like being on a rocket ship.