• Dear authors:

    I was using theme adventurous and wanted to get promotion headline field translated using plugin qTranslate X.

    I changed original adventurous-promotion-headlines.php
    from:

    $adventurous_homepage_headline .= '<h2>' . $homepage_headline . '</h2>';
    to:

    $adventurous_homepage_headline .= '<h2>' . sprintf( __('%s', 'adventurous' ), $homepage_headline ) . '</h2>';

    And used [:en]English[:zh]中文 in the field. Seems no use.

    Can you help here?

Viewing 1 replies (of 1 total)
  • Hello,
    Since, you have already found the file where homepage headline is located it will be comparatively easy for you.
    First of all you will be required to create a child theme, please see https://catchthemes.com/blog/create-child-theme-wordpress/ to create the child theme.
    Then you will have to go to functions.php of the child theme and paste the function code of the adventurous-promotion-headlines.php from line 12 to 76 and change the code of line number 74 from echo $adventurous_homepage_headline;
    to
    _e($adventurous_homepage_headline);

    Hope This should make the string translation ready for you.
    For quick response please look up on the themes official forum for the theme.
    https://catchthemes.com/support-forum/forum/adventurous-free/
    Regards,
    bplv

Viewing 1 replies (of 1 total)
  • The topic ‘language translation issue using qTranslate X plugin’ is closed to new replies.