Automatic Language Change after Login, Multilingual - Automatic forwarding

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Aug 10, 2017 1:16 pm

Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby kitan » Thu Aug 10, 2017 1:55 pm

Since 3.5 or 3.6, the automatic language change after Login no longer works.

After every Joomla update I replace the file languagefilter.php with an very old languagefilter.php and then it works perfect.
Last edited by imanickam on Fri Aug 11, 2017 12:07 pm, edited 1 time in total.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26301
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby imanickam » Thu Aug 10, 2017 5:32 pm

What version of Joomla! (e.g., 3.7.4) is being used?

In the plugin "System - Language Filter" what value is there for the option "Automatic Language Change"?
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby kitan » Thu Aug 10, 2017 6:22 pm

This problem exists since many Joomla versions. Currently I use 3.7.4

Automatic Language Change is on.

As I said, it works with me only with an very old languagefilter.php from the version 3.4 or 3.5

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26301
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby imanickam » Thu Aug 10, 2017 6:55 pm

I have tested this on a new installation of Joomla! 3.7.4.

The steps I followed are:
- Created a multilingual site with English (Default Site language), French, Arabic, and Tamil
- Each of the languages had three articles that are associated
- Created three users namely useren, userfr, and userta whose front-end language are English, French and Tamil respectively


Testing Done:
- Viewed the site by typing the URL of the site
- The site shows up in English
- Viewed the third article
- Logged in with the user (ie. userfr) who had the French language as the front-end language
- The site shows up in French with the third article in French
- Logged off
- The site still shows up in French as I have not changed any language
- Logged in with the user (ie. userta) who had the Tamil language as the front-end language
- The site shows up in Tamil with the third article in Tamil
- Logged off
- The site still shows up in Tamil
- Logged in with the user (ie. useren) who had the English language as the front-end language
- The sire shows up in English with the third article in English
- Logged off
- The sire still shows up in English with the third article in English

- I even changed the language and the articles and they all work the same way.


Following are the values for my settings in the plugin "System - Language Filter"
Language Selection for new Visitors -> Site Language
Automatic Language Change -> Yes
Associations -> Yes
Add Alternate Meta Tags -> Yes
Add x-default Meta Tag -> Yes
x-default Language -> Default frontend language
Remove URL Language Code -> No
Cookie Lifetime -> Session

What I would suggest is to test this in a new installation of Joomla!
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby kitan » Thu Aug 10, 2017 7:44 pm

Thanks "imanickam".

Then it seems to be a problem with the easysocial component.
Currently, it still works with the old languagefilter.php ...

Then I know at least where I must look for the error. Thank you

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby kitan » Fri Aug 11, 2017 7:10 am

Hi "imanickam",

I have now also installed a new Joomla installation with 3.7.4, just like you, only with the languages German, English, USA and France.

In addition I made for each language an extra menu entry. These are called the languages and are linked to the user profile.

A user is called "french" and should always be switched to French in/after the login.

On the homepage, that works as well.

But when user "french" login from the profile page, the language does not change automatically.

This is a problem when you use community components such as "Easysocial" or "Communitybuilder", because the user logs in from the component and not from the Joomla homepage.

I have made a video that explains it better:

https://www.screencast.com/users/Chris7 ... 715add5b74

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26301
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby imanickam » Fri Aug 11, 2017 1:29 pm

Thanks for testing and sharing the results. I further tested making a menu items for Login (using core Joomla component) and logged in using the menu item. The results of the login using the user component are consistent with the results as that of the login using the login module.

This leads me to believe that there could a potential issue with the extensions' provided login provisions.

Could you please get in touch with the extension providers?

By the mean time, I would request a developer to look into this.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby kitan » Fri Aug 11, 2017 2:04 pm

Hello "imanickam", thank you for your answer.

The video was only made with the blank Joomla 3.7.4 installation.

The links to the respective menus German, English, French, USA refer to the Joomla User Profile. It is a blank Jommla 3.7.4 installation. Without other components.

Some components with their own login-modules still have errors with automatic language switching. But this is an pure Joomla installation.

I now have weekend and then some time to look for the error.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26301
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby imanickam » Fri Aug 11, 2017 2:51 pm

Thanks for the clarification.

Can you please send me the credentials to the site (both for users and the admin with Super User) so that I can test it as well?

By the mean time, could you please test with the site I have created? I can send you the details in a PM if you do not mind testing.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18465
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby infograf768 » Sat Aug 12, 2017 7:10 am

The links to the respective menus German, English, French, USA refer to the Joomla User Profile. It is a blank Jommla 3.7.4 installation. Without other components.


For the language to change automatically when using Edit User Profile menu items, you have to create one per language (You did), but also associate these menu items.

Example here with a user which default site language is French and the UI is English when he logs from an edit profile menu item: Click on the screenshot below to see better.

userprofilelogin.gif


FYI, we usually set to Special Access these menu items, therefore they would display ONLY when the user is already logged in.
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

kitan
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Aug 10, 2017 1:16 pm

Re: Automatic Language Change after Login, Multilingual - Automatic forwarding

Postby kitan » Sun Aug 13, 2017 8:02 am

Thank you very much "infograf768",

That means, you have to associate all menu entries of the respective language where a login module or basically a login is.

I did that now. And it works wonderfully.

Did I read that somewhere? I thought the Associations would be just for Article.

I thank you for your help.

This solves the problem.


Return to “Extensions for Joomla! 3.x”

Who is online

Users browsing this forum: Hubert1957 and 8 guests