So, who am I ? Posted June 12, 2018 Share Posted June 12, 2018 (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 June 12, 2018 by So, who am I ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 12, 2018 Share Posted June 12, 2018 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. therefore, I assume your current admin language is English. <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). 0 Quote Link to comment Share on other sites More sharing options...
So, who am I ? Posted June 13, 2018 Author Share Posted June 13, 2018 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. therefore, I assume your current admin language is English. I've never thought to check templates for it, thought it was all about database, my bad 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). 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! 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.