Hi @michi,
To translate this text in the controller you don't need to make any changes to the code. You can translate the error messages in QloApps with the following steps:
Go to "Translations" in the "Localization" tab.Select the type of translation as "Error message translations" then select the language and click on modify. After this you will be able to update the translations for the error messages for the front controller.