Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Premium
    AvatarMehdi Bornak
    February 04, 2020 @ 10:11 pm

    hello support team,

    for unexplained reasons the german texts in the cookie-legal line are not taken over 🙁 what could be the reason for that?
    Label of the “Reject” button

    Home

    Moove AgencyMoove Agency
    February 05, 2020 @ 8:28 am

    Hi Mehdi,

    Thanks for using our plugins.

    Can you please ensure you’re using the latest version of the plugin?

    We tested it on our end and all works.

    If the problem persists, we will need temporary admin access to your site. Please don’t post it on this forum but send us an invite to plugins@mooveagency.com

    Hope this helps.
    Thanks

    Moove AgencyMoove Agency
    February 05, 2020 @ 12:16 pm

    Hi Bornak,

    We investigated the issue and we can see that this is specific problem related to your site.

    The problem with your site is that you are using a define(ICL_LANGUAGE_CODE) in themes/bornak_basic/core/Plugins/footer_text/inc/Default.php line #32-52 if the get_language() function is called. By this, you are setting up a variable, used widely by translation plugins, however your site is not using any of them. Our GDPR Cookie Compliance has a built-in feature to support translations plugins by using all the existing variables and extending to the option names by the language code.
    For example in a simple website (not multilingual) the button label name is gdpr_button_label, when the ICL_LANGUAGE_CODE is set (‘_de’), the label value will be stored to gdpr_button_label_de, and in the front-end the right language text will be displayed based on the language selected by the user.
    In your website, the ICL_LANGUAGE_CODE is set only for the front-end, so the plugin is looking for values ‘gdpr_button_label_de’ however in your admin area the ICL_LANGUAGE_CODE is not defined and the values are stored in the simple option: gdpr_button_label

    You can choose one of the solutions below:
    1. (recommended) Fix your theme function get_language() to not define the ICL_LANGUAGE_CODE.
    2. You can add the following code snippet to your functions.php, by this the ICL_LANGUAGE_CODE will be defined in your admin area too (after this you have to save the settings in GDPR Cookie Compliance setting tabs to save the labels in the language field)

    add_action('admin_init',function(){
    	global $pagenow;
    	if ( $pagenow === 'admin.php' && isset( $_GET['page'] ) && sanitize_text_field( wp_unslash( $_GET['page'] ) ) === 'moove-gdpr' ) :
    		if ( ! defined( 'ICL_LANGUAGE_CODE' ) ) :
    			define( 'ICL_LANGUAGE_CODE', 'de' );
    		endif;
    	endif;
    });

    Hope this makes sense.

    You can now remove our temporary admin user from your site.
    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.