Closed getflourish closed 1 year ago
Yes, the string included in the hook appears to be the culprit here -- this is due to Kirby's known issue with single-language setups; I actually just yesterday added that to the Wishlist again.
Since Commentions allows to override any strings via your site's config.php
, you should be able to change those strings to German by adding:
// in site/config/config.php
'sgkirby.commentions.t.en.feedback.comment.queued' => 'Vielen Dank! Bitte etwas Geduld, Kommentare werden manuell freigeschaltet.',
'sgkirby.commentions.t.en.feedback.comment.thankyou' => 'Vielen Dank für deinen Kommentar!',
'sgkirby.commentions.t.en.feedback.webmention.queued' => 'Vielen Dank, deine Webmention wurde registriert! Bitte etwas Geduld, Kommentare werden manuell freigeschaltet.',
Hacky, but should solve the issue as a workaround.
config/hooks.php
into snippets/commentions-feedback.php
; this would however be a breaking change, i.e. could only be introduced in a major version.
While the majority of the plugin seems to show up correctly in German, the feedback after submitting a comment is always shown in English.
Could that be because those messages are triggered through a hook that is initialised before the language is detected? https://github.com/sebastiangreger/kirby3-commentions/blob/master/config/hooks.php
Using Kirby 3.5
=> Always English, even though the language is set to German.
💡Idea: Ideally, all those strings could be translated in the panel. For my case, I forked the plugin and pull some of the content from the panel :)