Hi, I am researching the following use case:
A plugin uses the
t() helper for some frontend strings; these are translated into (currently) two languages in
Is there a way to “inject” my own translations for these strings via the
config.php on my site?
This could be for two motives:
- either because I need to override the default hardcoded into the plugin for my language (in this specific case: the plugin uses the German informal “Du” but my site uses the formal “Sie”), or
- because my site is running in a locale the plugin does not (yet) provide a translation for.
I looked through the docs and the code of I18n, but couldn’t figure it out myself. I’d greatly appreciate for any pointers! The only thing I dug up was this older thread about overriding Kirby’s default translations (not plugins); I could not find anything related in the Ideas repo either.