Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    Sorry I don’t understand your problem. You seem to have already the different code for both languages.

    Thread Starter fearRacious

    (@fearracious)

    Hello,
    We have a livechat plugin..And we have a multilanguage website.. On the site the contents are switching..Except for the livechat.. I would like to know if its possible with polylang to get it translated

    Plugin Author Chouby

    (@chouby)

    Polylang won’t do that for you but you can do it easily.
    Just test the locale retrieved from get_locale() and choose the script to use accordingly.

    Thread Starter fearRacious

    (@fearracious)

    Hi, Sorry,
    Not familiar with the functions :(..

    Will it be like this on the functions.php?
    <?php get_locale()

    <script type=”text/javascript” defer=”defer” src=”https://mylivechat.com/chatbox.aspx?hccid=56977468&lang=fr”></script&gt;
    ?>

    Plugin Support Chrystl

    (@chrystl)

    Hello

    Try this code below.

    <?php
    if (get_locale() == 'fr_FR') { ?>
    <script type="text/javascript" defer="defer" src="https://mylivechat.com/chatbox.aspx?hccid=56977468&lang=fr"></script>
    <?php
    }
    else { ?>
    <script type="text/javascript" defer="defer" src="https://mylivechat.com/chatbox.aspx?hccid=56977468&lang=en-us"></script>
    <?php
    }
    ?>
    Thread Starter fearRacious

    (@fearracious)

    Thanks,, But it seems its not calling the other script when switched..Only one

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘livechat plugin to be switched in another language’ is closed to new replies.