I need to override a particular translation string used in the Moodle core. The language customization feature is not an option because I want the translation to change when my plugin is installed/removed.
Install the plugin -> Moodle uses the customized string
Remove the plugin -> Moodle immediately uses the original string
Example use case:
By default the login form says "Username". When a plugin is installed, the form says "Username / Email" instead.
(This is just an example. I'm aware it's already possible to sign in using email address in Moodle 2.7)
Is it possible to override strings like this?