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'd like to sell domains with different price and currency for customers who visit from outside my country.
      I'm thinking to use OrderDomainPricingOverride hook to change price for non local customers, I plan to differ local and non local customers by their IP. But before I start, thought to ask here, maybe there's a better built in way of doing it that I couldn't find.
      I see I can add another currency to WHMCS but it says:  Customers who visit your site can then choose to shop in their local currency.
      I don't want customers to have to choose currency, I want local ones to shop with local currency and non local one with non local currency. I still can differ it manually by IPs I know, just want to know if WHMCS has some extra features for it that I can use.
    • By ModulesGarden
      1. How many times did you forget a meeting with a client or sending an email of critical importance? Human mind is fallible and for this reason cannot be trusted implicitly when the future of your company is at stake. Just a few moments ago we released a perked-up version of our flagship CRM For WHMCS module – the tool designed to make your client management a smooth sailing. 
      Once you reap the benefits of this landmark 2.5.0 version, you will also be able to: 

      Assign clients to the created labels on a Kanban board by means of an extremely convenient drag & drop functionality.  Lay down the rules to automatically convert a contact from one type to another and send reminders via email or SMS. Preview the full history of exchanged emails and text messages with a client in the 'Emails' tab of a contact view.


      It is time to bring the endless comfort of this modern tool straight into your customer relationships management flow.  Look into the remaining changes more closely and  update the module now!  Learn More About CRM For WHMCS 2.5.0!
       

      2. Developer Outsourcing service which has entered ModulesGarden offer for good is based on the principle that when it comes to software & business development, there is no room for concessions and half-way solutions. Just think about it. 
      What do you expect from a developer when hiring him/her to do some development work for you? We bet that no matter what the assignment is – a complex system built from scratch or minor optimization tweaks – the expectations are always the same. Meaning: excellent technical skills and know-how, reasonable ETA, and probably most pressing of all – the solution measuring up to your every requirement.
      By signing a simple contract of partnership with our company, you will unlock for yourself access to all of the above premium benefits and much, much more. Delve into the mysteries of our brand-new Developer Outsourcing service and tell us what we can do for you! 
       
      Let's get your business on top – together!
       
       
      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
      Running your own company can be as lucrative as it can be challenging.
      Always-busy schedule, myriad of issues calling your immediate attention, and to top it all – sundry problems of technical nature popping up when you expect them the least.
      If you feel like these small tasks start to build up and prevent your business from spreading its wings, perhaps it is time to embrace some help? 
      Reaching out to an outside company for assistance is not necessarily a sign of weakness. Quite the contrary – it only proves how serious your approach to your business goals is. 


      If you are one of these self-aware business owners who see clearly the potential of professional advice and technical aid, discover our spic-and-span Developer Outsourcing service! 
      By establishing with us a long-term partnership, you will be entitled to a wide range of exclusive services including: assignment of our finest developers to your specific tasks, priority technical support, regular updates and maintenance of your software, and a whole lot more. 
      Read more about our out-of-the-box approach to software development and give your enterprise the upper hand it both craves and deserves! 
       
      https://www.blog.modulesgarden.com/developer-outsourcing
    • By ModulesGarden
      1. With technological advancements continually pushing forward, organizations need to stay alert and be able to not only overcome any difficulties springing up on their way, but also identify and take new business opportunities. Keeping in mind that more and more entrepreneurs are looking for software provider with whom they would be able to establish a long-term technology partnership, we have extended our offer with a brand-new service – Developer Outsourcing! Have an urgent project to complete? Trying to get rid of a messy bug from your system? Or maybe seeking a viable way to quickly boost the efficiency of your infrastructure? Whatever the problem or scale of the task that needs to be taken care of is, our developers will come to rescue and work on the solution in a timely fashion. If you are dying to learn all about our new service aimed at catering to deepest needs of a modern enterprise, stop by the ModulesGarden official Blog for an article dedicated to this very topic.
      Entrust the future of your company into our hands!
       
      2. The 15th anniversary of WordPress which put millions of people all around the globe in a celebratory state only recently gave us a powerful impetus to stretch our wings a bit further too. Did it pay off? Have a careful look at the just rolled out 1.1.0 version of our feisty WordPress Manager For WHMCS module and be the judge of that! 
      To make sure no crucial detail slips your attention, let us focus on the most commendable refinements. Apart from the fully-fledged compatibility with DirectAdmin & DirectAdmin Extended submodules, your clients are now given the chance to install WordPress instances from whatever custom script they want. But there is even more of these fine additions your audience is now privileged to employ! One of them is power to perform quick actions of creating, viewing, editing and deleting selected config records directly form the WP config file. The other – ability for your customers to enjoy the fully automated upgrade of their installation, plugins, and themes to the latest available version.
      Perfect the craft of handling WordPress instances with WordPress Manager For WHMCS 1.1.0 and do not let anyone beat you to it! 
       
      Learn All About WordPress Manager For WHMCS 1.1.0!
       
      3. There is no bad timing when it comes to tapping into the WordPress potential. Some occasions are simply more perfect that others – like our one-time-only special promotion! Visit ModulesGarden website asap, add our unbeatable WordPress Manager For WHMCS to your shopping cart and watch as even 20% of your money slips right back to your wallet! 
       
      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
      1. We take immense pride from our two top-end modules aimed at fully automated provisioning of Proxmox virtual servers - Proxmox VPS For WHMCS and Proxmox Cloud For WHMCS. Today even more intensely than before as both products have just gone through a monumental update accommodating tons of new features and enhancements.  
      At the cornerstone of this collective 2.5.0 update you will find confirmed Proxmox VE 5.2 compatibility and the longed-for Cloud-Init support for the KVM virtualization type. Another essential addition is the possibility to configure mount points for LXC containers with the specification of such elements as Storage, ACLs, Disk Size, and a few more. What will also capture your attention is a new option allowing to limit the network speed of your client′s server to a predefined value after monthly bandwidth has been reached. Lastly, your customers will be relieved to see additional layers of security added to their virtual machines – automatic removal of SSH root key upon completed creation of a new VM and passphrase support for SSK keys. 
      Since this week's double release is as abundant as it is riveting, we sincerely recommend to continue uncovering the newly implemented attributes directly from the changelog area. 
      Learn more about and Proxmox VPS For WHMCS 2.5.0 and Proxmox Cloud For WHMCS 2.5.0!
       
      2. While closely on the topic of time-effective and hassle-free server provisioning, let us propose you yet another module specifically assigned to this task - OpenStack VPS For WHMCS 1.6.0!
      At the forefront of several widespread transformations accompanying this hefty update you will notice the impeccable support for OpenStack Queens - the latest, 17th version of this well-know cloud infrastructure software as well as greater mobility in the sphere of server configuration. This includes the option to choose between various API versions and domains, and possibility to manually provide not only custom ports but also endpoint addresses. Another functionality your clients will certainly appreciate is the power to freely create, view, and remove their firewall rules from the level of your client area.
      We could enumerate at least a few more faculties this new superb update brings to the table, but we firmly believe that nothing can compete with the thrill of first-hand experience.
      Go for the future-proof OpenStack VPS For WHMCS 1.6.0 tool and drive success right into your doorstep!
      Learn more about OpenStack VPS For WHMCS 1.6.0! 
       
      3. When was the last time you ended your text message with a full stop instead of a smiley face or some other emoji? We bet you cannot even remember! Which is not surprising at all given that emojis are expressive enough to replace entire words, let alone punctuation marks. In fact, emojis have become widespread to the extent where it is commonplace for even customer support agents to respond in digital conversations with a symbol or two included. Are you curious to know what is the underlying reason for the ever-growing popularity of these adorable icons in the business settings? How about learning which borders you and your employees should never cross while interacting with your audience via this modern sign language? 
      Visit our newest Blog to explore all ins and outs of the emoji world! 
       
      4. It was exactly 15 years ago that the very first version of WordPress - an unrivaled CMS which today powers the total of 30% websites on the Internet - was launched. Join us at a celebration feast thrown on this very occasion and snap up the exuberant 20% promo code on our WordPress For WHMCS module!  
       
      5. See what′s on the list of the latest releases:

      Advanced Billing For WHMCS - v3.3.3 Time & Task Manager For WHMCS - v1.4.3 CRM For WHMCS - 2.4.6 Multibrand For WHMCS - 2.1.3 Emoji Picker For WHMCS - 1.0.1 cPanel Manage2 For WHMCS - 1.3.0 Unban Center For WHMCS – 2.0.3


      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!
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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