mtshahzad Posted November 6, 2012 Share Posted November 6, 2012 My site is a multi-lingual, and i want that when i change the language of my main site, the language of the whmcs should also be changed. I am updating the "language" variable in session which is used by the WHMCS, but it is only showing the selected language in the dropdown, but contents are not changed. Also i have tried to call a script like cart.php?language=french using ajax when the site main language is changed, but no luck. Also there is another issue, that when i change the language using the WHMCS language dropdown, the language of that page is changed, but as soon as i navigate to another whmcs page .. the language of the page changed to default one. Any guide line to resolve this issue or is there any way that we can force the whmcs to use a specified language by settings some variable in the template files? Domain: http://www.wesellanyname.com Looking for your support. 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted November 8, 2012 Administrators Share Posted November 8, 2012 Also there is another issue, that when i change the language using the WHMCS language dropdown, the language of that page is changed, but as soon as i navigate to another whmcs page .. the language of the page changed to default one. Patch #4 from this thread will resolve this problem: http://forum.whmcs.com/showthread.php?51266 0 Quote Link to comment Share on other sites More sharing options...
mtshahzad Posted November 14, 2013 Author Share Posted November 14, 2013 Hello! I want to change the language of the whmcs from external php code. I am changing the session variable but it is not working. My site is on the root folder, whmcs is also on root folder. I am using the same session variable name "language" and values like "french" in my site. When i changed my site language, session variable is updated and my site language is changed, but it has no effect on the whmcs language. And same is the case if i change the whmcs language within whmcs body area language control, the whmcs language is changed and it has no effect on my site. It seems that whmcs has changed the variable names or has done something new, thats why it is not working, it was working in previous version of whmcs (v5.1.2). Also i have tried to print the session variables and found that both my site and the whmcs have different variables. Any suggestions, idea to overcome this issue will highly be appreciated. Thanks MT Shahzad 0 Quote Link to comment Share on other sites More sharing options...
mtshahzad Posted November 15, 2013 Author Share Posted November 15, 2013 Hello! I want to change the language of the whmcs from external php code. I am changing the session variable but it is not working. My site is on the root folder, whmcs is also on root folder. I am using the same session variable name "language" and values like "french" in my site. When i changed my site language, session variable is updated and my site language is changed, but it has no effect on the whmcs language. And same is the case if i change the whmcs language within whmcs body area language control, the whmcs language is changed and it has no effect on my site. It seems that whmcs has changed the variable names or has done something new, thats why it is not working, it was working in previous version of whmcs (v5.1.2). Also i have tried to print the session variables and found that both my site and the whmcs have different variables. Any suggestions, idea to overcome this issue will highly be appreciated. Thanks MT Shahzad 0 Quote Link to comment Share on other sites More sharing options...
Infopro Posted November 15, 2013 Share Posted November 15, 2013 Multiple threads merged here. 0 Quote Link to comment Share on other sites More sharing options...
mtshahzad Posted November 16, 2013 Author Share Posted November 16, 2013 Version 5.1 language patch don't work in this case. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.