Jump to content
So, who am I ?

Client Area delault language doens't work

Recommended Posts

Posted (edited)

Hello ^_^

I want my Client Area to be Georgian.

I went to Set Up >> General Settings >> Localisation and chose Georgian as Default Language. When I go to client area it works fine, but if I go to Client Profile >> Summary and click 'Login as Client' in 'Client Information' box, it still redirects me to English version of Client Area.

I've done a little research on the web before asking here and some said it isn't saved in database and that's why it doesn't work, I checked tblconfiguration table and it says that language is Georgian, am I looking for it in a wrong table ? How can I fix this ?

Edited by So, who am I ?

Share this post


Link to post
Share on other sites
4 hours ago, So, who am I ? said:

I want my Client Area to be Georgian.

for others, there is a Georgian client area language pack here... it's two years old, so not current but could be a good starting point (ignore that it says it's admin lang too, there is only a client lang file in there).

4 hours ago, So, who am I ? said:

I went to Set Up >> General Settings >> Localisation and chose Georgian as Default Language. When I go to client area it works fine, but if I go to Client Profile >> Summary and click 'Login as Client' in 'Client Information' box, it still redirects me to English version of Client Area.

that's because the client login link, in the client summary page (clientsummary.tpl), is hardcoded to use the admin's language - which makes sense, because if I have a client who's Russian, but I don't speak Russian, there's no point in me necessarily seeing the site in the Russian language. :1198_flag_ru:

therefore, I assume your current admin language is English. :1242_flag_gb:

<a id="summary-login-as-client" href="../dologin.php?username={$clientsdetails.email|urlencode}&language={$adminLanguage}"><img src="images/icons/clientlogin.png" border="0" align="absmiddle" /> {$_ADMINLANG.clientsummary.loginasclient}</a>

you could change that to...

<a id="summary-login-as-client" href="../dologin.php?username={$clientsdetails.email|urlencode}"><img src="images/icons/clientlogin.png" border="0" align="absmiddle" /> {$_ADMINLANG.clientsummary.loginasclient}</a>

... and you should then be able to login in the client's language.

I should also add that when the client logs in themselves, it will choose the correct language - it's only because this login link in admin is coded to pass the admins language, that it uses English (or whatever your admin language is). :idea:

Share this post


Link to post
Share on other sites
On 6/12/2018 at 3:12 PM, brian! said:

that's because the client login link, in the client summary page (clientsummary.tpl), is hardcoded to use the admin's language - which makes sense, because if I have a client who's Russian, but I don't speak Russian, there's no point in me necessarily seeing the site in the Russian language. :1198_flag_ru:

therefore, I assume your current admin language is English. :1242_flag_gb:

I've never thought to check templates for it, thought it was all about database, my bad :D yeah, current admin language is English.

On 6/12/2018 at 3:12 PM, brian! said:

 


<a id="summary-login-as-client" href="../dologin.php?username={$clientsdetails.email|urlencode}&language={$adminLanguage}"><img src="images/icons/clientlogin.png" border="0" align="absmiddle" /> {$_ADMINLANG.clientsummary.loginasclient}</a>

you could change that to...


<a id="summary-login-as-client" href="../dologin.php?username={$clientsdetails.email|urlencode}"><img src="images/icons/clientlogin.png" border="0" align="absmiddle" /> {$_ADMINLANG.clientsummary.loginasclient}</a>

... and you should then be able to login in the client's language.

I should also add that when the client logs in themselves, it will choose the correct language - it's only because this login link in admin is coded to pass the admins language, that it uses English (or whatever your admin language is). :idea:

Instead of totally removing language, I passed Georgian as language parameter, so it will always open in Georgian from admin area, no matter what language user uses

<a id="summary-login-as-client" href="../dologin.php?username={$clientsdetails.email|urlencode}&language=georgian"><img src="images/icons/clientlogin.png" border="0" align="absmiddle" /> {$_ADMINLANG.clientsummary.loginasclient}</a>

 

thanks for help, brian! ^_^

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By So, who am I ?
      Hello,
      I want to remove Provisioning Module Products from PrimaryNavbar and Provisioning Module Sample Panel from SecondarySidebar.
      For PrimaryNavbar I use ClientAreaPrimaryNavbar hook, weird thing is that I can hide every child of 'Services' except Provisioning Module Products,  it seems I can't reach to Provisioning Module Products, but not sure why...
      add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Services'))) { $primaryNavbar->getChild('Services') ->removeChild('Provisioning Module Products'); } });  
      For SecondarySidebar I use ClientAreaSecondarySidebar, but I can't hide it either.
       
      add_hook('ClientAreaSecondarySidebar', 1, function (MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Provisioning Module Sample Panel'))) { $secondarySidebar->removeChild('Provisioning Module Sample Panel'); } });  
       
      Any help would be much appreciated.
    • By ModulesGarden
      1. Today we have the immense pleasure of announcing that we added yet another link to our social network and that is Instagram! Would you like to learn more about the people standing behind the software you are using on a daily basis and peek into the intriguing details of their work that are unavailable on the official ModulesGarden website? 
      Follow us on Instagram!
       
      2. Another piece of great news today is that our Payment Gateway Charges For WHMCS module was just upgraded to the 2.1.0 version!
      If you are wondering what this new update entails, we are rushing to give you a snapshot of the newly introduced capabilities: 

      Billing clients before or after a promo code has been applied Possibility to toggle charges for "Adding Funds To Credit Deposit", "Late Fee Invoice Items", and "Custom Invoice Items" A wide assortment of tweaks


      Bring your module a step closer to perfection with this vital new update, and deliver customer experience at the high-class level. Learn all about Payment Gateway Charges For WHMCS 2.1.0!
       
      3. Halloween is probably this part of the year when our clients can scoop up the most mind-blowing discounts ever. 
      Starting from 25%, through 50%, to even 75% off whichever WHMCS module you set your eyes on – and all that with absolutely minimal effort! 
      Head over to our Blog right away and get inspired by all the participants who already made their contribution towards our chilling Halloween Contest. We are waiting for you until next week when we will be announcing the winners and handing in the well-deserved prizes! 
      Heat up your fall with our stimulating Halloween Promotion!
       
      Need Custom Software Development For Your Business?

      Get Your Free Quote Now!


      Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By ModulesGarden
      Hello everyone!
      Today we bear the light-hearted news that as of now you can find us on yet another popular social networking platform – Instagram! 
      Life at ModulesGarden is not all about sitting in front of the computer to produce heaps of code that turn into the WHMCS modules you know so well. 
      It is also about all little and funny moments that happen in between - during a coffee break, or even sometimes after work. 

      Follow our "ModulesGardenOfficial" profile to explore the crazier side of ModulesGarden!  
       
      https://www.instagram.com/modulesgardenofficial
    • By ModulesGarden
      1. Time to unleash the spirit of the Halloween season! Get into the spooky mood instantly with our trio of enchanting bargains. Compete in our chilling contest, snap up the 25%, 50% or the colossal 75% discount and make this year’s Halloween one for the books! But we warned: we accept replies published on our Blog only up to and including 13th November, so you had better hurry up!
      Take home your favorite Halloween treat!
       
      2. Recently we have set in motion our massively modernized model of Open Source products dedicated to the WHMCS platform. Under this new approach, you may obtain virtually every module in the unencrypted version in a matter of a few clicks, and at much more reasonable prices than ever before. Once you have gained access to the source code of our software, you can stop worrying about any recurring charges or license verification procedures, and instead focus on doing what matters – adapting the tool to your business conditions.
      Reap full benefits from our all-new Open Source mechanism!
       
      3. Let us now move to our weekly release of G Suite For WHMCS 1.3.0 which went through a few transitions. Most importantly, the tool has been upgraded to let you now suspend flexible subscriptions in the most convenient fashion, as well as provide custom fields and configurable options with more friendly and intelligible names.
      Learn more about G Suite For WHMCS 1.3.0!
       
      4. The second novelty on our Marketplace is Name.com Registrar For WHMCS 1.2.0 that has been bolstered up with the “ID Protection” option applicable to registered domains, and possibility to set up an email message that will be sent to administrators after domain transfer request.
      Learn more about Name.com Registrar For WHMCS 1.2.0!
       
      5. For subscription-based companies, there is no greater fear than seeing their churn rate increasing, as every spike represents another customer, subscription, or dollar that you have just lost. Although it might seem pointless at first to focus on the assets that are gone, knowing your churn rate can help you develop an effective retention strategy.
      The founder of MetricsCube assures that keeping churn under strict control is possible most of the time, and even shares a few tried-and-tested tricks to do it. Check them out!
      Stem the tide of churn and inspire customer loyalty with MetricsCube!
       
      Need Custom Software Development For Your Business?

      Get Your Free Quote Now!


      Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
       
    • By ModulesGarden
      Halloween is back and so are we - with a bag stuffed with sweets and candies from top to bottom!
       
      Visit our Blog and join the rest of the competitors in electrifying game where the stakes are really high.
      25%, 50%, or 75% promo codes can be yours, and without almost any effort.
      The only condition is that you participate before the 13th November has passed.

      There is not a ghost of a chance you will feel bored this boo-tiful holiday by our side.
      Step inside our Halloween Blog for a treat!
       
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines