Jump to content

Auto Changing LiveChat Language


Recommended Posts

Hi,

 

I am having an issue of LiveHelp, not changing it's language with the sellection on WHMCS site. I am planning on giving support in 2 languages, but for now, I have to set the LiveHelp language manually from Windows App, or to the livehelp.php hook file (which is located on /includes/hooks/) with a

LiveHelpSettings.locale = 'en'; (or any language code)

line that tells LiveHelp on which language it should open.

 

I tought making that "en" code a variable like "$liveHelpLang" and use it like

LiveHelpSettings.locale = '{$liveHelpLang}';

should work. But I know of PHP not so much, so I don't know where to put that variable so that the hook file will recognize it.

I tried creating $_LANG['LiveHelpLanguage'] = "xx"; on both the languages files and used LiveHelpSettings.locale = '{$LANG.liveHelpLang}'; on the livehelp.php hook file. But with that site won't open, just a white screen.

 

Can someone help me to solve this issue, or at least show me the right direction to follow?

Thanks in advance...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated