Lexicon
If you want to change the text and the buttons in the consent management window, you have to use the MODX lexicon system.
Navigate in the manager to System (gear icon) > Lexicons. In the lexicon
management grid you have to select consentfriend as namespace, web as area
and the language, you want to change the entry.
Double click on the value of any of the strings to edit them and clear the MODX cache for changes to appear in the front-end.
The changes made this way will also persist across updates of the ConsentFriend package.
The ConsentFriend lexicon can be translated on Weblate.
Custom lexicon file
Instead of editing the lexicon entries in the manager, you can create a lexicon
file core/components/consentfriend/lexicon/{language}/custom.inc.php for each
language of the website. {language} is the cultureKey of the context, i.e.
de for a German context. The entries in this file replace the entries with the
same key in the consent management window and in the ConsentFriend custom
manager page. They can also contain the titles and descriptions of your own
services and purposes:
<?php
$_lang['consentfriend.consentModal.title'] = 'Our services';
$_lang['consentfriend.services.myService.title'] = 'My Service';
$_lang['consentfriend.services.myService.description'] = 'The description of my service.';
$_lang['consentfriend.purposes.myPurpose.title'] = 'My Purpose';
$_lang['consentfriend.purposes.myPurpose.description'] = 'The description of my purpose.';
Replace myService with the name of the service and myPurpose with the key
of the purpose. Clear the MODX cache for changes to appear in the front-end.
The file is not part of the ConsentFriend package, so it is not changed by an update. Since it is located in the ConsentFriend core folder, please make a backup before uninstalling ConsentFriend.