Jump to content

Client Area delault language doens't work


So, who am I ?

Recommended Posts

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 ?
Link to comment
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:

Link to comment
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! ^_^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated