Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2016-10-25 13:38:56

altomarketing
Member
Registered: 2015-03-25
Posts: 34

Change default language in default link ?

Hi ! How can i change default lang for chat ? not in a widget (i know how to do it) , i meant I use a direct link like this:

http://MYSITEWITHLHC/index.php/chat/startchat/true?prefill%5Bemail%5D={$client_email}&prefill%5Bquestion%5D=Soy%20Cliente&prefill%5Busername%5D={$client_name}

But Shows alwasy in English i need in spanish.

I change default lang in Settings but default keeps

Offline

#2 2016-10-25 13:40:35

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Change default language in default link ?

Hi, you can set the default widget language when you generate the embed code.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#3 2016-10-25 13:45:06

altomarketing
Member
Registered: 2015-03-25
Posts: 34

Re: Change default language in default link ?

PeopleInside wrote:

Hi, you can set the default widget language when you generate the embed code.

You didnt read my post. sad

its not for embed code, I meant for direct link to my website  big_smile

Offline

#4 2016-10-25 13:49:16

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Change default language in default link ?

Sorry, in that case I cannot help. I believe is not possible or I don't know how to do. If you really need this you can try to open a topic in GitHub. Before do this please try to check the documentation on the Live Helper website.
Thanks.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#5 2016-10-26 02:52:36

altomarketing
Member
Registered: 2015-03-25
Posts: 34

Re: Change default language in default link ?

PeopleInside wrote:

Before do this please try to check the documentation on the Live Helper website.
Thanks.

In changed in settings.ini.php ,   'locale' => 'en', to  'locale' => 'es_MX',

[== PHP ==]
<?php
 return array (
  'settings' => 
  array (
    'site' => 
    array (
      'title' => 'Live helper Chat',
      'site_admin_email' => '',
      'locale' => 'es_MX',
      'theme' => 'defaulttheme',
      'installed' => true,

And for english i will use a widget or code for my english websites. but my default lang is Spanish now

Offline

#6 2016-10-26 08:43:42

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Change default language in default link ?

Hi,
do you have read in the documentation to edit the file settings.ini.php?
Usually I think edit code is not a good idea and made LHC broken for some user. You do at your risk.

In the admin operator panel of LHC there are all settings necessary for set the language but for have a direct link to the language this I think is not possibile.
You can create different Embed code with different default language so maybe from the pop up you are able to take the relative direct link.

Happy you have solved or found a solution for you.
Thank you for the feedback also if edit code is not suggested by me.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#7 2016-10-26 11:33:19

altomarketing
Member
Registered: 2015-03-25
Posts: 34

Re: Change default language in default link ?

Lets clarify:

1. Embebed code and widget is always in javascript, a need a direct url link to my chat with parameters like i described above, because I need it to do it inside my emails (using sendgrid)
Is it possible to pass lang parameter in direct link ?

2. editing settings.ini.php is not recommended but its the only solutions i found.


3. you said "In the admin operator panel of LHC there are all settings necessary for set the language " but i not find how to change public default lang.

Offline

#8 2016-10-26 12:00:59

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Change default language in default link ?

altomarketing wrote:

1. Embebed code and widget is always in javascript, a need a direct url link to my chat with parameters like i described above, because I need it to do it inside my emails (using sendgrid)
Is it possible to pass lang parameter in direct link ?

You have to open a Topic in GitHub here: https://github.com/LiveHelperChat/livehelperchat/issues but please be specific like your last post https://forum.livehelperchat.com/viewto … 8905#p8905
I think is not possibile at the moment but you can request for the future in GitHub. If will already supported you will be updated by email in the GitHub topic.

altomarketing wrote:

2. editing settings.ini.php is not recommended but its the only solutions i found.

that's ok if work in your case. If your LHC was broken and resume the file was not able to fix you have to solve by yourself or I can just suggest a clean install. You lucky it works smile

altomarketing wrote:

3. you said "In the admin operator panel of LHC there are all settings necessary for set the language " but i not find how to change public default lang.

With "public default language" I can understand is widget language because is what visitor see. This can be set when you generate Embed Code.
If you are talking about public operator language than there are relative settings in settings -> language configuration


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#9 2016-10-26 12:46:55

scalior
Member
Registered: 2016-09-27
Posts: 48
Website

Re: Change default language in default link ?

PeopleInside wrote:
altomarketing wrote:

2. editing settings.ini.php is not recommended but its the only solutions i found.

that's ok if work in your case. If your LHC was broken and resume the file was not able to fix you have to solve by yourself or I can just suggest a clean install. You lucky it works smile

I think there is a need for an FAQ for the settings.ini.php. There are some features that require editing the file directly, for example, activating an extension (https://livehelperchat.com/article/view/57), disable cache (https://livehelperchat.com/article/view/40), etc. The FAQ will clarify what users can edit and the purpose of the setting. It should also mention settings that users should not edit.


Lead developer Wurrd for LiveHelperChat, a mobile client for operators.
Serve your customers on the go! Download now from http://wurrdapp.com/get-it-now/
Forum discussion: https://forum.livehelperchat.com/viewtopic.php?id=2132

Offline

#10 2016-10-26 12:53:22

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Change default language in default link ?

Hi scalior,
thank you for your suggestion for the new FAQ section of the Forum!

I don't agree fully with you on the needs of create a FAQ for edit settings.ini.php and this is my reasons:
If you have to edit the file the relative guide of the extension will says to the user what edit, where edit. Instructions may be different for each extension.

When I update LHC never followed the step to edit the file and disable cache. All my upgrade was done successfully without issue just replace the listed folders.

So I think usually is not really needed touch the code inside settings.ini.php and if is necessary the relative guide to the extension will guide the user.
I think this.

Last edited by PeopleInside (2016-10-26 12:56:40)


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer