Frontend is not getting locale computed

Permalink
Hi there,

I've been able to
var_dump(Localization::getInstance( ));


Output:
protected 'remote' => 
        array (size=0)
          empty
      protected 'locale' => string 'en_GB' (length=5)
      protected 'fallbackLocale' => null
      protected 'cache' =>


While the path is "/pt/portfolio" and this is the page under '/pt' which has locale 'pt_PT'.
Now, where does the locale get's computed so I can look into it?

This is the reason for translations not working on my frontends (topics and so on... for instance, I sense this thread is due to this problem:https://www.concrete5.org/community/forums/internationalization/how-... )

 
mlocati replied on at Permalink Reply
mlocati
Which concrete5 version are you using?

Do you have this problem when you are logged in or when you visit your website as a guest?
nmpribeiro replied on at Permalink Reply
Hi mlocati,

Problem only happens while logged in. When visiting as guest, the right locale get's computed. But, is this expected?

# concrete5 Version
Core Version - 5.7.5.9
Version Installed - 5.7.5.9
Database Version - 20160615000000
mlocati replied on at Permalink Reply
mlocati
Yes, this is the expected behavior.

The problem is that when you visit a page as a logged-in user, there are 2 current languages: the page one and the user's one.

By default, concrete5 5.7 uses the user's one, but you can specify to use the page one in the dashboard page /dashboard/system/multilingual/setup: look for the "Load Interface Language from" option.
nmpribeiro replied on at Permalink Reply
I see. Yes, changing from user to page selection makes the behavior I'm looking after.
Just misunderstood the options.

Thanks mlocati