Viewing 1 replies (of 1 total)
  • I already figured out!!

    You need to replace $front->widget->post_title for ppqtrans_useCurrentLanguageIfNotFoundShowAvailable($front->widget->post_title) in your template code.

    This is template dependant so, open the php files of your template and search for the string to be replaced, once founded, replace it. If this doesn’t work you can try replacing into the plugin’s files.

    I try this in the WP Frontpage News plugin, editing the wp-fpn-widget.inc.php file. I change the code like this :

    include_once "/wp-content/plugins/qtranslate-xp/ppqtranslate_hooks.php";
    $lengua = ppqtrans_useCurrentLanguageIfNotFoundShowAvailable($front->widget->post_title);
    echo $args['before_title'] . $lengua . $args['after_title'];

    instead of

    echo $args['before_title'] . $front->widget->post_title . $args['after_title'];

    Good Luck!

    Note: in order to translate the widget title, you need to enter the title in this format: [:es] TU TITULO [:en] YOUR TITLE (replace the language codes for your active languages)

Viewing 1 replies (of 1 total)
  • The topic ‘applying qtranslate to widget title’ is closed to new replies.