Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/complianz-gdpr/integrations/plugins/ |
Upload File : |
<?php defined( 'ABSPATH' ) or die();
/**
* Make options translatable in qtranslate
* @param array $options
*
* @return array
*/
function cmplz_qtranslatex_options($options){
$keys = array(
'header',
'accept_optin',
'accept_optout',
'manage_consent',
'manage_options',
'save_settings',
'dismiss',
'message_optout',
'message_optin',
'category_functional',
'category_preferences',
'category_statistics',
'functional_text',
'statistics_text',
'statistics_text_anonymous',
'preferences_text',
'marketing_text',
'category_marketing',
);
foreach($keys as $key){
if ( isset($options[$key]['text']) && is_string($options[$key]['text']) ){
$options[$key]['text'] = __($options[$key]['text']);
} else if ( isset($options[$key]) && is_string($options[$key]) ) {
$options[$key] = __($options[$key]);
}
}
return $options;
}
add_filter('cmplz_cookiebanner_settings_html','cmplz_qtranslatex_options',10,1);