Okay
  Public Ticket #1143599
Translation Icon-Box-Descriptions
Closed

Comments

  • envato22 started the conversation

    I have not been able to translate the Icon-Box-Descriptions (on the Homepage) with WPML although I have added the widget_qt_icon_box admin texts.

    I have tried the followin temporary solution (seems to work):
    - change in \inc\widgets\widget-icon-box.php (in the main theme, not in the child) this:

    <span class="icon-box--description"><?php echo wp_kses_post( $instance['text'] ); ?></span>

    into this:

    <span class="icon-box--description"><?php  _e(wp_kses_post( $instance['text']),'physio-qt'); ?></span>


    Thanks in advance,
    Albert.

  •  1,710
    Barry replied

    Hi Albert,

    The input fields from custom widgets need to be adding to the string translation list via WPML -> String Translation -> Translate texts in admin screens (very bottom text link) then search for the 'widget_qt_icon_box' strings to select and add with the button at the bottom of the page. But there is a much easier way, let me explain.

    I recommend to install the WPML Widgets plugin. After installing it will add a new select field at the bottom of the widget settings where you can select which widget on which language need to be displayed.

    If you have any questions, please let me know.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  • envato22 replied

    The WPML Widgets worked like a charm.

    Thanks for your quick reply and solution.

    BRs,

    Albert.

  •  1,710
    Barry replied

    Great! You're welcome!

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  1,710
    Barry replied

    Thanks a lot for your rating, really appreciated!

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes