Plugin Author
Thomas
(@tsteur)
Hi @kirstenosa you could install this plugin: https://plugins.matomo.org/CustomiseTranslations#description see how to install a Matomo Marketplace plugin in Matomo for WordPress
Then you can translate the wording for these translation keys:
* CoreAdminHome_OptOutComplete
* CoreAdminHome_OptOutCompleteBis
* CoreAdminHome_YouMayOptOut2
* CoreAdminHome_YouMayOptOut3
* CoreAdminHome_YouAreNotOptedOut
* CoreAdminHome_UncheckToOptOut
* CoreAdminHome_YouAreOptedOut
* CoreAdminHome_CheckToOptIn
Does this help @kirstenosa ?
In case you are a developer: We do not yet support WordPress filters for changing these translations but we started this in https://github.com/matomo-org/wp-matomo/pull/36 The code for this is in wp-content/plugins/matomo/classes/WpMatomo/OptOut.php
and we could add filters if that helps.
Thanks, I have installed this plugin but I can’t see how I can use it. I can’t see any options for this plugin at all so where do I make the changes to the wording for the translation keys?
Plugin Author
Thomas
(@tsteur)
The settings are bit hard to find. Sorry about that, should have mentioned it.
* Log in to your WP Admin dashboard
* Click on Matomo Analytics -> Settings
* Click on the “Matomo Admin” tab
* You should now see the Matomo admin with a link on the left to “General settings”
* There you should find the settings under the “Customise translations” section.
Does this work?
Thanks, I have now found this and managed to replace most of the text. I still need to know the name of the key for the first line of the warning ie
This website use Cookies.
Can you let me know the name of the file that use these keys?
Plugin Author
Thomas
(@tsteur)
@kirstenosa not sure to which text you refer to exactly. Maybe CoreAdminHome_OptOutErrorNoCookies
(“The tracking opt-out feature requires cookies to be enabled.”)? This would be only shown when cookies are disabled.
“This website use Cookies.” this text is maybe not from us? At least I could not find this exact wording.
Plugin Author
Thomas
(@tsteur)
@kirstenosa have you had a chance to check out my previous comment? Does this work for you?
Sorry, you are absolutely right, the text is part of the text widget I used to display it.
Plugin Author
Thomas
(@tsteur)
Great, thanks for confirming.