nrelate Related Content
Translate "You may also like" wiht qTranslate (5 posts)

  1. saynw
    Posted 3 years ago #

    Hello, I have the plugin and works well, however my site is in English and Spanish, so I use qTranslate plugin to translate all the content.
    This qTranslate plugin has to code to work:
    <!--:es--><!--:--><!--:en--><!--:--> (normally used for content areas)
    [:es][:en] (used for title of widgets areas).

    None of this code is working to translate the "You may also like" text.

    Any Help?



  2. @saynw -- You can change the "You may also like" text to whatever you wish by going to the plugin's settings page when logged into WordPress. Here's a screenshot for reference: https://www.dropbox.com/s/jiv3tpovtelvwiz/Screen%20Shot%202012-11-04%20at%206.03.20%20PM.png

    [ Signature moderated. ]

  3. weeix
    Posted 3 years ago #

    @katrina -- I know what saynw actually means - I also encounter this problem. When we input this text in the plugin's settings page:

    <!--:es-->También te puede interesar<!--:--><!--:en-->You may also like<!--:-->

    The output would be:

    También te puede interesarYou may also like

    What we expect is:

    You may also like

    when the language in the frontend is set to English and

    También te puede interesar

    when the language in the frontend is set to Spanish

    the author of qTranslate says that to add compatibility with any plugin, just simply enclose the recently inputted text with wordpress's localized function __(), but I can't find where to place it.

    Thanks for your support, Wee.

  4. wassem mansour
    Posted 2 years ago #

    so how all you guys did you solve this problem

  5. weeix
    Posted 2 years ago #

    In my case, I leave a blank for the "Please enter a title for the related content box" section, disable the auto-embed function and manually put these codes to my 'single.php'

    <?php if (function_exists('nrelate_related')) {
    			_e('<h4 style="margin-bottom: 0"><!--:th-->บทความที่เกี่ยวข้อง<!--:--><!--:en-->Related Articles<!--:--></h4>');
    	} ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic