You can use automatic internationalization for this. Just add an entry for the LocalizedMessage object with the message from the code as "original", the desired language (maybe "en", even if the original is in English) and the desired message in the "localized" field.
Please note that the “original” must be the actual text coming from the code. If it has the extension of the string $ {}, which should be left as is. In other words, localization is performed before the line is expanded so that the placeholders can move as needed (or even change ...) to handle different languages or to configure messages.
The user interface for adding / editing l10n messages is on the screen Application => Tool => Localization => Messages.
, , "l10n.message" ( = > = > = > ).