• Hi guys,

    I wanna switch from the old good qtranslate to mqtranslate. I have made some tests with mqtranslate but unfortunately I have seen that my slider’s captions haven’t been translated. I’m using that kind of sintaxis [:en]English text[:bg]Bulgarian text, but I see the whole code in both languages in front-end.
    I have tried to add to my child theme functions.php that code from @acub, but that breaks the site:

    if ( is_plugin_active('mqtranslate/mqtranslate.php') ) {
    	add_filter( 'tc_slide_link_url' , 'tc_url_lang' );
    	add_filter( 'tc_logo_link_url' , 'tc_url_lang');
    	add_filter( 'tc_fp_link_url' , 'tc_url_lang');
    	add_filter( 'tc_slide_title', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_button_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_background_alt', 'tc_apply_qtranslate' );
    	add_filter( 'tc_fp_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_fp_button_text', 'tc_apply_qtranslate' );
    	add_filter( 'tc_slide_title_length'  , 'tc_remove_char_limit');
    	add_filter( 'tc_slide_text_length'   , 'tc_remove_char_limit');
    	add_filter( 'tc_slide_button_length' , 'tc_remove_char_limit');
    	add_filter( 'tc_fp_text_length' , 'tc_remove_char_limit');
    }

    What should I do to fix that?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to translate slider captions with mqtranslate?’ is closed to new replies.