Internationalizes a hard-coded string by moving it to an i18n locale file and replacing its usage with a call of the translate method.