Hi @mooveagency,
Thank you for your answer.
Maybe my explanation was not good enough. I will try again.
In GDPR Module – Advanced Cookies section of the class-gdpr-modules.php file we can read this code:
$tab_title = isset( $modal_options[ ‘moove_gdpr_advanced_cookies_tab_title’ . $wpml_lang ] ) && $modal_options[ ‘moove_gdpr_advanced_cookies_tab_title’ . $wpml_lang ] ? $modal_options[ ‘moove_gdpr_advanced_cookies_tab_title’ . $wpml_lang ] : __( ‘Additional Cookies’, ‘gdpr-cookie-compliance’ );
And we see that the text associated with the GDPR Module – Advanced Cookies section is ‘Additional Cookies’.
In GDPR Module – Third Party Cookies section of the class-gdpr-modules.php file we can read this code:
$tab_title = isset( $modal_options[ ‘moove_gdpr_performance_cookies_tab_title’ . $wpml_lang ] ) && $modal_options[ ‘moove_gdpr_performance_cookies_tab_title’ . $wpml_lang ] ? $modal_options[ ‘moove_gdpr_performance_cookies_tab_title’ . $wpml_lang ] : __( ‘3rd Party Cookies’, ‘gdpr-cookie-compliance’ );
And we see that the text associated with the GDPR Module – Third Party Cookies section is ‘3rd Party Cookies’.
Until now, everything seems logical and these are the texts used by gdpr-cookie-compliance-fr_FR.po file to find the translations in French.
For example, in the case of the text ‘3rd Party Cookies’ the gdpr-cookie-compliance-fr_FR.po file give us ‘Cookie tiers’, as you can see in the code of the file:
#: moove-modules.php:243 moove-modules.php:298 moove-modules.php:346
#: views/moove/admin/settings/settings_page.php:94
#: views/moove/admin/settings/third_party_cookies.php:66
msgid “3rd Party Cookies”
msgstr “Cookies tiers”
So let’s have a look now to the code of GDPR Module – Cookie Policy Page section in the class-gdpr-modules.php file that give me problems:
$tab_title = isset( $modal_options[ ‘moove_gdpr_cookie_policy_tab_nav_label’ . $wpml_lang ] ) && $modal_options[ ‘moove_gdpr_cookie_policy_tab_nav_label’ . $wpml_lang ] ? $modal_options[ ‘moove_gdpr_cookie_policy_tab_nav_label’ . $wpml_lang ] : __( ‘3rd Party Cookies’, ‘gdpr-cookie-compliance’ );
We see that the text associated with the GDPR Module – Cookie Policy Page section is ‘3rd Party Cookies’ while I think it should have been ‘Cookie Policy’.
As a result of this, in the French version of my website the tab title of Cookie Policy is translated by “Cookie tiers” by gdpr-cookie-compliance-fr_FR.po file, which is the French translation of “3rd Party Cookies”.
To make the good translation, the gdpr-cookie-compliance-fr_FR.po file is expecting the ‘Cookie Policy’ text, as you can see in its code:
#: moove-modules.php:354 views/moove/admin/settings/cookie_policy.php:45
#: views/moove/admin/settings/settings_page.php:107
msgid “Cookie Policy”
msgstr “Politique de Cookies”
As soon as I change the text “3rd Party Cookie” by “Cookie Policy” in the GDPR Module – Cookie Policy Page section of the class-gdpr-modules.php file, the problem is fixed.
So, I believe the text should be changed in order to obtain the correct translations indicated in the gdpr-cookie-compliance-fr_FR.po file.
I don’t really want to customize anything in my website. I think, that with this change in the the class-gdpr-modules.php file the tab title of the Cookie Policy tab will be correctly translated in any language having a .po file.
Please, let me know if this makes any sense for you.
Best regards,
Javier Barrón